From 0cf374749203d8dfb14898581535d86f36d5a375 Mon Sep 17 00:00:00 2001 From: Dan Berkowitz Date: Sun, 6 Oct 2024 13:32:58 -0400 Subject: [PATCH] Update deps Signed-off-by: Dan Berkowitz --- build.gradle | 328 +++++++++++------------ gradle/wrapper/gradle-wrapper.properties | 2 +- 2 files changed, 165 insertions(+), 165 deletions(-) diff --git a/build.gradle b/build.gradle index 353326b..70fdca7 100644 --- a/build.gradle +++ b/build.gradle @@ -1,164 +1,164 @@ -plugins { - // Apply the java-library plugin for API and implementation separation. - id 'java-library' - id 'idea' - id "com.github.ben-manes.versions" version "0.51.0" - id 'signing' - id 'maven-publish' - id 'checkstyle' - id "com.autonomousapps.dependency-analysis" version "1.30.0" -} - -version = '0.1.2-SNAPSHOT' - -sourceCompatibility = 11 -targetCompatibility = 11 - -rootProject.description = 'Read and Write Podcast feeds from Java.' - -group = 'co.ntbl' - -tasks.register('createProperties') { - doLast { - new File("$projectDir/src/main/resources/version.properties").withWriter { w -> - Properties p = new Properties() - p['version'] = project.version.toString() - p.store w, null - } - } -} - -classes { - dependsOn createProperties -} - -jar { - manifest { - attributes( - "Class-Path": "co.ntbl.podcastfeedhandler", - "Main-Class": "PodcastFeedHandler", - "Implementation-Title": project.name, - "Implementation-Version": version, - "Implementation-Vendor": "Daniel Berkowitz", - "Build-Jdk": org.gradle.internal.jvm.Jvm.current(), - "Gradle-Version": GradleVersion.current().toString() - ) - } - duplicatesStrategy = DuplicatesStrategy.EXCLUDE - from { - configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } - } -} - -java { - withJavadocJar() - withSourcesJar() -} - -ext.admin = System.getenv("MAVEN_USERNAME") - -signing { - required { admin } - def signingKey = System.getenv("GPG_SIGNING_KEY") - def signingPassword = System.getenv("GPG_SIGNING_PASSPHRASE") - useInMemoryPgpKeys(signingKey, signingPassword) - // sign configurations.archives - sign publishing.publications -} - -test { -// minHeapSize = "256m" // initial heap size -// maxHeapSize = "1024m" // maximum heap size - testLogging { - // Make sure output from - // standard out or error is shown - // in Gradle output. - showStandardStreams = true - - // Or we use events method: - // events 'standard_out', 'standard_error' - - // Or set property events: - // events = ['standard_out', 'standard_error'] - - // Instead of string values we can - // use enum values: - // events org.gradle.api.tasks.testing.logging.TestLogEvent.STANDARD_OUT, - // org.gradle.api.tasks.testing.logging.TestLogEvent.STANDARD_ERROR, - } -} - -repositories { - mavenCentral() -} - -dependencies { - // Use JUnit Jupiter for testing. - testImplementation 'org.junit.jupiter:junit-jupiter:5.10.2' - testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.2' - testImplementation group: 'com.icosillion.podengine', name: 'podengine', version: '2.4.1' -} - -tasks.named('test') { - // Use JUnit Platform for unit tests. - useJUnitPlatform() -} - -// To accept gradle scans and publish them -if (hasProperty('buildScan')) { - buildScan { - termsOfServiceUrl = 'https://gradle.com/terms-of-service' - termsOfServiceAgree = 'yes' - } -} - -// -// MAVEN -// - -publishing { - publications { - mavenJava(MavenPublication) { - from components.java - - pom { - name = 'PodcastFeedHandler' - description = rootProject.description - url = 'https://github.com/daberkow/PodcastFeedHandler' - licenses { - license { - name = 'MIT License' - url = 'https://github.com/daberkow/PodcastFeedHandler/blob/main/LICENSE' - distribution = 'repo' - } - } - developers { - developer { - id = 'daberkow' - name = 'Daniel Berkowitz' - email = 'dansberkowitz@gmail.com' - } - } - scm { - connection = 'scm:git:git://github.com/daberkow/PodcastFeedHandler.git' - developerConnection = 'scm:git:ssh://git@github.com:daberkow/PodcastFeedHandler.git' - url = 'https://github.com/daberkow/PodcastFeedHandler' - } - } - } - } - repositories { - maven { - name = "OSSRH" - if (admin) { - credentials { - username = System.getenv("MAVEN_USERNAME") - password = System.getenv("MAVEN_PASSWORD") - } - } - def releasesRepoUrl = 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/' - def snapshotsRepoUrl = 'https://s01.oss.sonatype.org/content/repositories/snapshots/' - url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl - } - } -} +plugins { + // Apply the java-library plugin for API and implementation separation. + id 'java-library' + id 'idea' + id "com.github.ben-manes.versions" version "0.51.0" + id 'signing' + id 'maven-publish' + id 'checkstyle' + id "com.autonomousapps.dependency-analysis" version "2.1.4" +} + +version = '0.1.2-SNAPSHOT' + +sourceCompatibility = 11 +targetCompatibility = 11 + +rootProject.description = 'Read and Write Podcast feeds from Java.' + +group = 'co.ntbl' + +tasks.register('createProperties') { + doLast { + new File("$projectDir/src/main/resources/version.properties").withWriter { w -> + Properties p = new Properties() + p['version'] = project.version.toString() + p.store w, null + } + } +} + +classes { + dependsOn createProperties +} + +jar { + manifest { + attributes( + "Class-Path": "co.ntbl.podcastfeedhandler", + "Main-Class": "PodcastFeedHandler", + "Implementation-Title": project.name, + "Implementation-Version": version, + "Implementation-Vendor": "Daniel Berkowitz", + "Build-Jdk": org.gradle.internal.jvm.Jvm.current(), + "Gradle-Version": GradleVersion.current().toString() + ) + } + duplicatesStrategy = DuplicatesStrategy.EXCLUDE + from { + configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } + } +} + +java { + withJavadocJar() + withSourcesJar() +} + +ext.admin = System.getenv("MAVEN_USERNAME") + +signing { + required { admin } + def signingKey = System.getenv("GPG_SIGNING_KEY") + def signingPassword = System.getenv("GPG_SIGNING_PASSPHRASE") + useInMemoryPgpKeys(signingKey, signingPassword) + // sign configurations.archives + sign publishing.publications +} + +test { +// minHeapSize = "256m" // initial heap size +// maxHeapSize = "1024m" // maximum heap size + testLogging { + // Make sure output from + // standard out or error is shown + // in Gradle output. + showStandardStreams = true + + // Or we use events method: + // events 'standard_out', 'standard_error' + + // Or set property events: + // events = ['standard_out', 'standard_error'] + + // Instead of string values we can + // use enum values: + // events org.gradle.api.tasks.testing.logging.TestLogEvent.STANDARD_OUT, + // org.gradle.api.tasks.testing.logging.TestLogEvent.STANDARD_ERROR, + } +} + +repositories { + mavenCentral() +} + +dependencies { + // Use JUnit Jupiter for testing. + testImplementation 'org.junit.jupiter:junit-jupiter:5.11.2' + testImplementation 'org.junit.jupiter:junit-jupiter-api:5.11.2' + testImplementation group: 'com.icosillion.podengine', name: 'podengine', version: '2.4.1' +} + +tasks.named('test') { + // Use JUnit Platform for unit tests. + useJUnitPlatform() +} + +// To accept gradle scans and publish them +if (hasProperty('buildScan')) { + buildScan { + termsOfServiceUrl = 'https://gradle.com/terms-of-service' + termsOfServiceAgree = 'yes' + } +} + +// +// MAVEN +// + +publishing { + publications { + mavenJava(MavenPublication) { + from components.java + + pom { + name = 'PodcastFeedHandler' + description = rootProject.description + url = 'https://github.com/daberkow/PodcastFeedHandler' + licenses { + license { + name = 'MIT License' + url = 'https://github.com/daberkow/PodcastFeedHandler/blob/main/LICENSE' + distribution = 'repo' + } + } + developers { + developer { + id = 'daberkow' + name = 'Daniel Berkowitz' + email = 'dansberkowitz@gmail.com' + } + } + scm { + connection = 'scm:git:git://github.com/daberkow/PodcastFeedHandler.git' + developerConnection = 'scm:git:ssh://git@github.com:daberkow/PodcastFeedHandler.git' + url = 'https://github.com/daberkow/PodcastFeedHandler' + } + } + } + } + repositories { + maven { + name = "OSSRH" + if (admin) { + credentials { + username = System.getenv("MAVEN_USERNAME") + password = System.getenv("MAVEN_PASSWORD") + } + } + def releasesRepoUrl = 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/' + def snapshotsRepoUrl = 'https://s01.oss.sonatype.org/content/repositories/snapshots/' + url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl + } + } +} diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 509c4a2..5c40527 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip networkTimeout=10000 zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists