From e1e07fa40c2b90ca0a04dd46358d3a1b5df30a52 Mon Sep 17 00:00:00 2001 From: Nathaniel Date: Fri, 1 Sep 2023 21:28:40 -0600 Subject: [PATCH] upgrade version --- .../groovy/nucleodb.java-conventions.gradle | 15 +++++++++------ library/build.gradle | 19 +++++++++++++++---- 2 files changed, 24 insertions(+), 10 deletions(-) diff --git a/buildSrc/src/main/groovy/nucleodb.java-conventions.gradle b/buildSrc/src/main/groovy/nucleodb.java-conventions.gradle index 525ed05..5a6cd78 100644 --- a/buildSrc/src/main/groovy/nucleodb.java-conventions.gradle +++ b/buildSrc/src/main/groovy/nucleodb.java-conventions.gradle @@ -3,23 +3,26 @@ plugins { } group = 'com.nucleodb' -version = '1.6.2' +version = '1.6.3' repositories { mavenCentral() - maven{ - url "https://repo.synload.com/" - } } +java { + toolchain { + languageVersion = JavaLanguageVersion.of(19) + } +} +compileJava { + options.release = 19 +} dependencies { - testImplementation "junit:junit:4.13" implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.2.3' implementation group: 'org.apache.kafka', name: 'kafka-clients', version: '2.1.0' implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.17.2' implementation group: 'net.sf.supercsv', name: 'super-csv-java8', version: '2.4.0' implementation 'com.github.f4b6a3:uuid-creator:4.5.0' - implementation group: 'junit', name: 'junit', version: '4.12' implementation 'com.google.guava:guava:28.1-jre' implementation 'com.github.java-json-tools:json-patch:1.13' implementation 'org.glassfish:javax.json:1.1.4' diff --git a/library/build.gradle b/library/build.gradle index 5d1b7da..a421578 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -1,9 +1,10 @@ plugins { - id 'com.github.johnrengelman.shadow' version '7.0.0' + id 'java' id 'java-library' id 'nucleodb.java-conventions' id 'maven-publish' + id 'com.github.johnrengelman.shadow' version '8.1.1' } group = 'com.nucleocore' @@ -19,19 +20,29 @@ repositories { } } } - +java { + toolchain { + languageVersion = JavaLanguageVersion.of(19) + } +} +compileJava { + options.release = 19 +} shadowJar { - minimize() archiveBaseName.set(group) archiveVersion.set(version) archiveClassifier.set('') + minimize{ + exclude(dependency('org.*:.*:.*')) + exclude(dependency('com.*:.*:.*')) + exclude(dependency('net.*:.*:.*')) + } } dependencies { implementation(project(':shared')) } - publishing { publications { mavenJava(MavenPublication) {