Skip to content
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
206 changes: 0 additions & 206 deletions build-tester/build.gradle

This file was deleted.

8 changes: 0 additions & 8 deletions build-tester/settings.gradle

This file was deleted.

43 changes: 15 additions & 28 deletions schedule-message/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,28 @@ def jarAndArtifactName = "schedule-message" + jarEnd

version = isRelease ? jarVersion : jarVersion + "-SNAPSHOT" // version is the variable the build actually uses.

System.out.println("Java: " + System.getProperty("java.version"))
System.out.println("Target Compatibility: " + targetCompat)
System.out.println(group + ":" + jarAndArtifactName + ":" + version)

java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = targetCompat
}

repositories {
mavenLocal()
mavenCentral()
maven { url="https://repo1.maven.org/maven2/" }
maven { url="https://central.sonatype.com/repository/maven-snapshots" }
maven { url="https://central.sonatype.com/repository/maven-snapshots/" }
}

dependencies {
implementation 'io.nats:jnats:2.25.1'
implementation 'io.nats:jnats:2.25.3-SNAPSHOT'
implementation 'org.jspecify:jspecify:1.0.0'
implementation 'io.synadia:counters:0.2.2'

testImplementation 'io.nats:jnats-server-runner:3.1.0'
testImplementation 'org.junit.jupiter:junit-jupiter:5.14.1'
testImplementation 'org.junit.platform:junit-platform-launcher:1.14.3'
}
Expand All @@ -48,9 +54,6 @@ sourceSets {
java {
srcDirs = ['src/main/java','src/examples/java']
}
resources {
srcDirs = ['src/examples/resources']
}
}
test {
java {
Expand All @@ -61,33 +64,23 @@ sourceSets {

tasks.register('bundle', Bundle) {
from sourceSets.main.output
exclude("io/synadia/bt/examples/**")
exclude("io/synadia/examples/**")
}

jar {
bundle {
bnd("Bundle-Name": "io.synadia.schedule.message",
"Bundle-Vendor": "synadia.io",
"Bundle-Description": "JetStream Scheduled Messages",
"Bundle-DocURL": "https://synadia.io"
"Bundle-DocURL": "https://github.com/synadia-io/orbit.java/tree/main/schedule-message",
"Target-Compatibility": "Java " + targetCompat
)
}
}

test {
// Use junit platform for unit tests
useJUnitPlatform()
testLogging {
exceptionFormat = 'full'
events "started", "passed", "skipped", "failed"
showStandardStreams = true
}
retry {
failOnPassedAfterRetry = false
maxFailures = 3
maxRetries = 3
}
systemProperty 'junit.jupiter.execution.timeout.default', '3m'
}

javadoc {
Expand All @@ -106,7 +99,7 @@ tasks.register('examplesJar', Jar) {
'Implementation-Vendor': 'synadia.io')
}
from(sourceSets.main.output) {
include "io/synadia/bt/examples/**"
include "io/synadia/examples/**"
}
}

Expand All @@ -120,13 +113,8 @@ tasks.register('sourcesJar', Jar) {
from sourceSets.main.allSource
}

tasks.register('testsJar', Jar) {
archiveClassifier.set('tests')
from sourceSets.test.allSource
}

artifacts {
archives javadocJar, sourcesJar, examplesJar, testsJar
archives javadocJar, sourcesJar, examplesJar
}

jacoco {
Expand Down Expand Up @@ -164,10 +152,9 @@ publishing {
artifact sourcesJar
artifact examplesJar
artifact javadocJar
artifact testsJar
pom {
name = jarAndArtifactName
packaging = "jar"
packaging = 'jar'
groupId = group
artifactId = jarAndArtifactName
description = "Synadia Communications Inc. JetStream Scheduled Messages"
Expand All @@ -187,7 +174,7 @@ publishing {
}
}
scm {
url = "https://github.com/synadia-io/orbit.java"
url = 'https://github.com/synadia-io/orbit.java'
}
}
}
Expand Down
Loading