Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[test] JDK 17 upgrade #278

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 51 additions & 45 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,28 @@
*/

plugins {
id "com.github.hierynomus.license" version "0.11.0"
id "com.github.hierynomus.license" version "0.16.1"
id 'signing'
id 'maven-publish'
}

apply plugin: 'idea'
apply plugin: 'java'
apply plugin: 'groovy'

plugins.withType(JavaPlugin) {
sourceCompatibility = 1.8
targetCompatibility = 1.8
sourceCompatibility = 17
targetCompatibility = 17
}

ext.versions = [
assertj : '2.0.0',
guava : '21.0',
guava : '33.3.1-jre',
guice : '4.0',
log4j : '1.2.17',
testng : '7.5',
testng : '7.10.2',
junit : '4.12',
spock : '1.0-groovy-2.4',
spock : '2.3-groovy-4.0',
slf4j : '1.7.12',
hsqldb : '2.3.2',
dbutils : '1.6',
Expand All @@ -48,7 +50,7 @@ ext.versions = [
hive : '3.0.0-2',
presto : '0.181',
reflections : '0.9.9',
bytebuddy : '0.7-rc2',
bytebuddy : '1.15.4',
jsch : '0.1.52',
mina_sshd : '0.14.0',
freemarker : '2.3.22',
Expand Down Expand Up @@ -119,7 +121,7 @@ ext.isReleaseVersion = !tempto_version.endsWith("SNAPSHOT")

ext.nexusUsername = 'setup_nexusUsername_in_gradle.properties'
ext.nexusPassword = 'setup_nexusPassword_in_gradle.properties'
ext.skipSigning = false
ext.skipSigning = true // temp change


subprojects {
Expand All @@ -141,25 +143,27 @@ subprojects {
configure(subprojects - expected_result_generator - tempto_examples) {
apply plugin: 'signing'
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'maven-publish'

// plugins configuration
javadoc {
failOnError = true
}

// javadoc.jar generation
// Javadoc.jar generation
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
archiveClassifier.set('javadoc')
from(javadoc)
}

// sources.jar generation

// Sources.jar generation
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allJava
archiveClassifier.set('sources')
from(sourceSets.main.allJava)
}


signing {
required { isReleaseVersion && !skipSigning }
sign configurations.archives
Expand All @@ -170,44 +174,46 @@ configure(subprojects - expected_result_generator - tempto_examples) {
}

// publishing to sonatype
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }

repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: nexusUsername, password: nexusPassword)
}
publishing {
publications {
maven(MavenPublication) {
groupId 'com.github.aaneja.tempto'
artifactId artifactId
version 'jdk17_snapshot'

snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: nexusUsername, password: nexusPassword)
}
from components.java

pom.project {
pom {
packaging 'jar'
description 'Tempto - test framework'
url 'https://github.com/prestodb/tempto'
scm {
url '[email protected]:prestodb/tempto.git'
connection 'scm:git:[email protected]:prestodb/tempto.git'
developerConnection 'scm:git:[email protected]:prestodb/tempto.git'
}
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/license/LICENSE-2.0.txt'
}
}
developers {
developer {
id 'thc'
name 'Teradata Hadoop Center'
email 'EB230060 aat teradata doot com'
}
}

// fix scm and licenses and developers
}
}
}

repositories {
maven {
url = uri('https://oss.sonatype.org/service/local/staging/deploy/maven2/')
credentials {
username = System.getenv('NEXUS_USERNAME')
password = System.getenv('NEXUS_PASSWORD')
}
}

maven {
url = uri('https://oss.sonatype.org/content/repositories/snapshots/')
credentials {
username = System.getenv('NEXUS_USERNAME')
password = System.getenv('NEXUS_PASSWORD')
}
}
}
}

signing {
sign publishing.publications.maven
}
}

Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
4 changes: 3 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https://services.gradle.org/distributions/gradle-6.6-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading