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

Update deps #5

Merged
merged 1 commit into from
Oct 6, 2024
Merged
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
328 changes: 164 additions & 164 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -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 = '[email protected]'
}
}
scm {
connection = 'scm:git:git://github.com/daberkow/PodcastFeedHandler.git'
developerConnection = 'scm:git:ssh://[email protected]: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 = '[email protected]'
}
}
scm {
connection = 'scm:git:git://github.com/daberkow/PodcastFeedHandler.git'
developerConnection = 'scm:git:ssh://[email protected]: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
}
}
}
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -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
Loading