Skip to content

Commit

Permalink
- Upgrade Gradle to 8.11
Browse files Browse the repository at this point in the history
- Update core dependencies to more recent versions
- Remove unused NameService/NameServiceDescriptor implementations
  • Loading branch information
aaneja committed Dec 17, 2024
1 parent eb9d16c commit 87f7bba
Show file tree
Hide file tree
Showing 19 changed files with 395 additions and 427 deletions.
94 changes: 50 additions & 44 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 @@ -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 'jdk8_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 'git@github.com:prestodb/tempto.git'
connection 'scm:git:git@github.com:prestodb/tempto.git'
developerConnection 'scm:git:git@github.com: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.11.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit 87f7bba

Please sign in to comment.