Skip to content

Commit

Permalink
Merge pull request #283 from aaneja/gradleUpgrade810_jdk8
Browse files Browse the repository at this point in the history
Modernize tempto
  • Loading branch information
tdcmeehan authored Jan 23, 2025
2 parents eb9d16c + e6f70ca commit 9263c07
Show file tree
Hide file tree
Showing 18 changed files with 362 additions and 426 deletions.
85 changes: 42 additions & 43 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,18 @@
*/

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
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

ext.versions = [
Expand All @@ -32,7 +34,7 @@ ext.versions = [
log4j : '1.2.17',
testng : '7.5',
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.55',
mina_sshd : '0.14.0',
freemarker : '2.3.22',
Expand Down Expand Up @@ -113,7 +115,7 @@ ext.tempto_runner = project(':tempto-runner')
ext.tempto_ldap = project(':tempto-ldap')
ext.tempto_kafka = project(':tempto-kafka')
ext.expected_result_generator = project(':expected-result-generator')
ext.tempto_version = '1.53'
ext.tempto_version = '1.54-SNAPSHOT'
ext.tempto_group = "io.prestodb.tempto"
ext.isReleaseVersion = !tempto_version.endsWith("SNAPSHOT")

Expand Down Expand Up @@ -141,23 +143,24 @@ 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
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allJava
archiveClassifier.set('sources')
from(sourceSets.main.allJava)
}

signing {
Expand All @@ -170,41 +173,37 @@ 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) {
group tempto_group
version tempto_version

from components.java

pom {
packaging = 'jar'
description = 'Tempto - test framework'
url = 'https://github.com/prestodb/tempto'
}
}
}

snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: nexusUsername, password: nexusPassword)
repositories {
maven {
url = uri('https://oss.sonatype.org/service/local/staging/deploy/maven2/')
credentials {
username = System.getenv('NEXUS_USERNAME')
password = System.getenv('NEXUS_PASSWORD')
}
}

pom.project {
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'
}
}
maven {
url = uri('https://oss.sonatype.org/content/repositories/snapshots/')
credentials {
username = System.getenv('NEXUS_USERNAME')
password = System.getenv('NEXUS_PASSWORD')
}
}
}
Expand Down
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.11.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit 9263c07

Please sign in to comment.