diff --git a/build.gradle b/build.gradle index 3e5e06d..f2a1f8e 100644 --- a/build.gradle +++ b/build.gradle @@ -8,16 +8,26 @@ allprojects { repositories { mavenCentral() } + + group = 'io.github.loom' + version = artifactVersion } subprojects { apply plugin: 'java' apply plugin: 'org.ec4j.editorconfig' apply plugin: 'checkstyle' + apply plugin: 'maven-publish' + apply plugin: 'signing' sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8 + java { + withJavadocJar() + withSourcesJar() + } + editorconfig { excludes = ["build"] } @@ -37,4 +47,67 @@ subprojects { maxErrors = 0 maxWarnings = 0 } + + jar { + manifest { + attributes( + 'Specification-Title': artifactName, + 'Specification-Version': artifactVersion, + 'Specification-Vendor': 'io.github.loom', + 'Implementation-Title': artifactName, + 'Implementation-Version': artifactVersion, + 'Implementation-Vendor': 'io.github.loom' + ) + } + } + + publishing { + repositories { + maven { + name "OSSRH" + url "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/" + credentials { + username System.getenv("MAVEN_USERNAME") + password System.getenv("MAVEN_PASSWORD") + } + } + } + + publications { + maven(MavenPublication) { + artifactId artifactId + from components.java + pom { + name = artifactName + description = artifactDescription + url = "https://github.com/loom/loom-java" + licenses { + license { + name = "MIT License" + url = "https://github.com/loom/loom-java/blob/main/LICENSE" + } + } + developers { + developer { + id = "gyuwon" + name = "Gyuwon Yi" + email = "gyuwon@live.com" + } + } + scm { + connection = "https://github.com/loom/loom-java.git" + developerConnection = "https://github.com/loom/loom-java.git" + url = "https://github.com/loom/loom-java" + } + } + } + } + } + + signing { + def signingKey = System.getenv("SIGNING_KEY") + def signingPassword = System.getenv("SIGNING_PASSWORD") + useInMemoryPgpKeys(signingKey, signingPassword) + sign publishing.publications.maven + } } diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 0000000..245b58a --- /dev/null +++ b/gradle.properties @@ -0,0 +1 @@ +artifactVersion=0.0.4 diff --git a/loom.eventsourcing.abstraction/build.gradle b/loom.eventsourcing.abstraction/build.gradle index 7b1f011..6f4c042 100644 --- a/loom.eventsourcing.abstraction/build.gradle +++ b/loom.eventsourcing.abstraction/build.gradle @@ -1,85 +1,8 @@ plugins { id 'java-library' - id 'maven-publish' - id 'signing' } dependencies { api 'io.github.loom:loom.eventsourcing.contract:[0.0.1, 0.1.0)' api 'io.github.loom:loom.messaging.abstraction:[0.0.1, 0.1.0)' } - -java { - withJavadocJar() - withSourcesJar() -} - -test { - dependsOn('editorconfigCheck', 'checkstyleMain') -} - -group = 'io.github.loom' -version = artifactVersion - -jar { - manifest { - attributes( - 'Specification-Title': artifactName, - 'Specification-Version': artifactVersion, - 'Specification-Vendor': 'io.github.loom', - 'Implementation-Title': artifactName, - 'Implementation-Version': artifactVersion, - 'Implementation-Vendor': 'io.github.loom' - ) - } -} - -publishing { - repositories { - maven { - name "OSSRH" - url "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/" - credentials { - username System.getenv("MAVEN_USERNAME") - password System.getenv("MAVEN_PASSWORD") - } - } - } - - publications { - maven(MavenPublication) { - artifactId artifactId - from components.java - pom { - name = artifactName - description = artifactDescription - url = "https://github.com/loom/loom-java" - licenses { - license { - name = "MIT License" - url = "https://github.com/loom/loom-java/blob/main/LICENSE" - } - } - developers { - developer { - id = "gyuwon" - name = "Gyuwon Yi" - email = "gyuwon@live.com" - } - } - scm { - connection = "https://github.com/loom/loom-java.git" - developerConnection = "https://github.com/loom/loom-java.git" - url = "https://github.com/loom/loom-java" - } - } - } - } -} - -signing { - def signingKey = System.getenv("SIGNING_KEY") - def signingPassword = System.getenv("SIGNING_PASSWORD") - useInMemoryPgpKeys(signingKey, signingPassword) - sign publishing.publications.maven -} diff --git a/loom.eventsourcing.abstraction/gradle.properties b/loom.eventsourcing.abstraction/gradle.properties index 6035347..e9a9ebb 100644 --- a/loom.eventsourcing.abstraction/gradle.properties +++ b/loom.eventsourcing.abstraction/gradle.properties @@ -1,4 +1,3 @@ artifactId=loom-eventsourcing-abstraction artifactName=Loom Event Sourcing Abstraction -artifactVersion=0.0.3 artifactDescription=Abstraction layer for the event sourcing pattern. diff --git a/loom.eventsourcing.contract/build.gradle b/loom.eventsourcing.contract/build.gradle index d486cb9..1ac5aee 100644 --- a/loom.eventsourcing.contract/build.gradle +++ b/loom.eventsourcing.contract/build.gradle @@ -1,83 +1,6 @@ plugins { id 'java-library' - id 'maven-publish' - id 'signing' } dependencies { } - -java { - withJavadocJar() - withSourcesJar() -} - -test { - dependsOn('editorconfigCheck', 'checkstyleMain') -} - -group = 'io.github.loom' -version = artifactVersion - -jar { - manifest { - attributes( - 'Specification-Title': artifactName, - 'Specification-Version': artifactVersion, - 'Specification-Vendor': 'io.github.loom', - 'Implementation-Title': artifactName, - 'Implementation-Version': artifactVersion, - 'Implementation-Vendor': 'io.github.loom' - ) - } -} - -publishing { - repositories { - maven { - name "OSSRH" - url "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/" - credentials { - username System.getenv("MAVEN_USERNAME") - password System.getenv("MAVEN_PASSWORD") - } - } - } - - publications { - maven(MavenPublication) { - artifactId artifactId - from components.java - pom { - name = artifactName - description = artifactDescription - url = "https://github.com/loom/loom-java" - licenses { - license { - name = "MIT License" - url = "https://github.com/loom/loom-java/blob/main/LICENSE" - } - } - developers { - developer { - id = "gyuwon" - name = "Gyuwon Yi" - email = "gyuwon@live.com" - } - } - scm { - connection = "https://github.com/loom/loom-java.git" - developerConnection = "https://github.com/loom/loom-java.git" - url = "https://github.com/loom/loom-java" - } - } - } - } -} - -signing { - def signingKey = System.getenv("SIGNING_KEY") - def signingPassword = System.getenv("SIGNING_PASSWORD") - useInMemoryPgpKeys(signingKey, signingPassword) - sign publishing.publications.maven -} diff --git a/loom.eventsourcing.contract/gradle.properties b/loom.eventsourcing.contract/gradle.properties index 69e4896..09f1b1b 100644 --- a/loom.eventsourcing.contract/gradle.properties +++ b/loom.eventsourcing.contract/gradle.properties @@ -1,4 +1,3 @@ artifactId=loom-eventsourcing-contract artifactName=Loom Event Sourcing Contract -artifactVersion=0.0.1 artifactDescription=Define types for event streams. diff --git a/loom.eventsourcing.type/build.gradle b/loom.eventsourcing.type/build.gradle index ef6f33f..d09db4a 100644 --- a/loom.eventsourcing.type/build.gradle +++ b/loom.eventsourcing.type/build.gradle @@ -1,85 +1,8 @@ plugins { id 'java-library' - id 'maven-publish' - id 'signing' } dependencies { api 'io.github.loom:loom.eventsourcing.contract:[0.0.1, 0.1.0)' api 'io.github.loom:loom.type:[0.0.1, 0.1.0)' } - -java { - withJavadocJar() - withSourcesJar() -} - -test { - dependsOn('editorconfigCheck', 'checkstyleMain') -} - -group = 'io.github.loom' -version = artifactVersion - -jar { - manifest { - attributes( - 'Specification-Title': artifactName, - 'Specification-Version': artifactVersion, - 'Specification-Vendor': 'io.github.loom', - 'Implementation-Title': artifactName, - 'Implementation-Version': artifactVersion, - 'Implementation-Vendor': 'io.github.loom' - ) - } -} - -publishing { - repositories { - maven { - name "OSSRH" - url "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/" - credentials { - username System.getenv("MAVEN_USERNAME") - password System.getenv("MAVEN_PASSWORD") - } - } - } - - publications { - maven(MavenPublication) { - artifactId artifactId - from components.java - pom { - name = artifactName - description = artifactDescription - url = "https://github.com/loom/loom-java" - licenses { - license { - name = "MIT License" - url = "https://github.com/loom/loom-java/blob/main/LICENSE" - } - } - developers { - developer { - id = "gyuwon" - name = "Gyuwon Yi" - email = "gyuwon@live.com" - } - } - scm { - connection = "https://github.com/loom/loom-java.git" - developerConnection = "https://github.com/loom/loom-java.git" - url = "https://github.com/loom/loom-java" - } - } - } - } -} - -signing { - def signingKey = System.getenv("SIGNING_KEY") - def signingPassword = System.getenv("SIGNING_PASSWORD") - useInMemoryPgpKeys(signingKey, signingPassword) - sign publishing.publications.maven -} diff --git a/loom.eventsourcing.type/gradle.properties b/loom.eventsourcing.type/gradle.properties index 43e177e..8f64159 100644 --- a/loom.eventsourcing.type/gradle.properties +++ b/loom.eventsourcing.type/gradle.properties @@ -1,4 +1,3 @@ artifactId=loom-eventsourcing-type artifactName=Loom Event Sourcing Type -artifactVersion=0.0.3 artifactDescription=Support serialization of types for event streams. diff --git a/loom.json.abstraction/build.gradle b/loom.json.abstraction/build.gradle index 23fb956..520b5ab 100644 --- a/loom.json.abstraction/build.gradle +++ b/loom.json.abstraction/build.gradle @@ -1,84 +1,7 @@ plugins { id 'java-library' - id 'maven-publish' - id 'signing' } dependencies { api 'io.github.loom:loom.type:[0.0.1, 0.1.0)' } - -java { - withJavadocJar() - withSourcesJar() -} - -test { - dependsOn('editorconfigCheck', 'checkstyleMain') -} - -group = 'io.github.loom' -version = artifactVersion - -jar { - manifest { - attributes( - 'Specification-Title': artifactName, - 'Specification-Version': artifactVersion, - 'Specification-Vendor': 'io.github.loom', - 'Implementation-Title': artifactName, - 'Implementation-Version': artifactVersion, - 'Implementation-Vendor': 'io.github.loom' - ) - } -} - -publishing { - repositories { - maven { - name "OSSRH" - url "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/" - credentials { - username System.getenv("MAVEN_USERNAME") - password System.getenv("MAVEN_PASSWORD") - } - } - } - - publications { - maven(MavenPublication) { - artifactId artifactId - from components.java - pom { - name = artifactName - description = artifactDescription - url = "https://github.com/loom/loom-java" - licenses { - license { - name = "MIT License" - url = "https://github.com/loom/loom-java/blob/main/LICENSE" - } - } - developers { - developer { - id = "gyuwon" - name = "Gyuwon Yi" - email = "gyuwon@live.com" - } - } - scm { - connection = "https://github.com/loom/loom-java.git" - developerConnection = "https://github.com/loom/loom-java.git" - url = "https://github.com/loom/loom-java" - } - } - } - } -} - -signing { - def signingKey = System.getenv("SIGNING_KEY") - def signingPassword = System.getenv("SIGNING_PASSWORD") - useInMemoryPgpKeys(signingKey, signingPassword) - sign publishing.publications.maven -} diff --git a/loom.json.abstraction/gradle.properties b/loom.json.abstraction/gradle.properties index 9ec6e44..81881a0 100644 --- a/loom.json.abstraction/gradle.properties +++ b/loom.json.abstraction/gradle.properties @@ -1,4 +1,3 @@ artifactId=loom-json-abstraction artifactName=Loom Json Abstraction -artifactVersion=0.0.2 artifactDescription=Abstraction layer for JSON serialization. diff --git a/loom.json.jackson/build.gradle b/loom.json.jackson/build.gradle index ef59a82..6948717 100644 --- a/loom.json.jackson/build.gradle +++ b/loom.json.jackson/build.gradle @@ -1,85 +1,8 @@ plugins { id 'java-library' - id 'maven-publish' - id 'signing' } dependencies { api 'io.github.loom:loom.json.abstraction:[0.0.1, 0.1.0)' api 'com.fasterxml.jackson.core:jackson-databind:2.13.0' } - -java { - withJavadocJar() - withSourcesJar() -} - -test { - dependsOn('editorconfigCheck', 'checkstyleMain') -} - -group = 'io.github.loom' -version = artifactVersion - -jar { - manifest { - attributes( - 'Specification-Title': artifactName, - 'Specification-Version': artifactVersion, - 'Specification-Vendor': 'io.github.loom', - 'Implementation-Title': artifactName, - 'Implementation-Version': artifactVersion, - 'Implementation-Vendor': 'io.github.loom' - ) - } -} - -publishing { - repositories { - maven { - name "OSSRH" - url "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/" - credentials { - username System.getenv("MAVEN_USERNAME") - password System.getenv("MAVEN_PASSWORD") - } - } - } - - publications { - maven(MavenPublication) { - artifactId artifactId - from components.java - pom { - name = artifactName - description = artifactDescription - url = "https://github.com/loom/loom-java" - licenses { - license { - name = "MIT License" - url = "https://github.com/loom/loom-java/blob/main/LICENSE" - } - } - developers { - developer { - id = "gyuwon" - name = "Gyuwon Yi" - email = "gyuwon@live.com" - } - } - scm { - connection = "https://github.com/loom/loom-java.git" - developerConnection = "https://github.com/loom/loom-java.git" - url = "https://github.com/loom/loom-java" - } - } - } - } -} - -signing { - def signingKey = System.getenv("SIGNING_KEY") - def signingPassword = System.getenv("SIGNING_PASSWORD") - useInMemoryPgpKeys(signingKey, signingPassword) - sign publishing.publications.maven -} diff --git a/loom.json.jackson/gradle.properties b/loom.json.jackson/gradle.properties index ad050bb..85cf062 100644 --- a/loom.json.jackson/gradle.properties +++ b/loom.json.jackson/gradle.properties @@ -1,4 +1,3 @@ artifactId=loom-json-jackson artifactName=Loom Json Jackson -artifactVersion=0.0.3 artifactDescription=JSON serialization implementation using Jackson. diff --git a/loom.messaging.abstraction/build.gradle b/loom.messaging.abstraction/build.gradle index 29cf75d..0f8981d 100644 --- a/loom.messaging.abstraction/build.gradle +++ b/loom.messaging.abstraction/build.gradle @@ -1,84 +1,7 @@ plugins { id 'java-library' - id 'maven-publish' - id 'signing' } dependencies { api 'io.github.loom:loom.messaging.contract:[0.0.1, 0.1.0)' } - -java { - withJavadocJar() - withSourcesJar() -} - -test { - dependsOn('editorconfigCheck', 'checkstyleMain') -} - -group = 'io.github.loom' -version = artifactVersion - -jar { - manifest { - attributes( - 'Specification-Title': artifactName, - 'Specification-Version': artifactVersion, - 'Specification-Vendor': 'io.github.loom', - 'Implementation-Title': artifactName, - 'Implementation-Version': artifactVersion, - 'Implementation-Vendor': 'io.github.loom' - ) - } -} - -publishing { - repositories { - maven { - name "OSSRH" - url "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/" - credentials { - username System.getenv("MAVEN_USERNAME") - password System.getenv("MAVEN_PASSWORD") - } - } - } - - publications { - maven(MavenPublication) { - artifactId artifactId - from components.java - pom { - name = artifactName - description = artifactDescription - url = "https://github.com/loom/loom-java" - licenses { - license { - name = "MIT License" - url = "https://github.com/loom/loom-java/blob/main/LICENSE" - } - } - developers { - developer { - id = "gyuwon" - name = "Gyuwon Yi" - email = "gyuwon@live.com" - } - } - scm { - connection = "https://github.com/loom/loom-java.git" - developerConnection = "https://github.com/loom/loom-java.git" - url = "https://github.com/loom/loom-java" - } - } - } - } -} - -signing { - def signingKey = System.getenv("SIGNING_KEY") - def signingPassword = System.getenv("SIGNING_PASSWORD") - useInMemoryPgpKeys(signingKey, signingPassword) - sign publishing.publications.maven -} diff --git a/loom.messaging.abstraction/gradle.properties b/loom.messaging.abstraction/gradle.properties index 94bf9cc..5879903 100644 --- a/loom.messaging.abstraction/gradle.properties +++ b/loom.messaging.abstraction/gradle.properties @@ -1,4 +1,3 @@ artifactId=loom-messaging-abstraction artifactName=Loom Messaging Abstraction -artifactVersion=0.0.2 artifactDescription=Abstraction layer for asynchronous messaging. diff --git a/loom.messaging.azure/build.gradle b/loom.messaging.azure/build.gradle index d39143e..200ac76 100644 --- a/loom.messaging.azure/build.gradle +++ b/loom.messaging.azure/build.gradle @@ -6,12 +6,3 @@ dependencies { api(project(':loom.messaging.abstraction')) api 'com.azure:azure-messaging-eventhubs:5.15.0' } - -java { - withJavadocJar() - withSourcesJar() -} - -test { - dependsOn('editorconfigCheck', 'checkstyleMain') -} diff --git a/loom.messaging.azure/gradle.properties b/loom.messaging.azure/gradle.properties new file mode 100644 index 0000000..931c6be --- /dev/null +++ b/loom.messaging.azure/gradle.properties @@ -0,0 +1,3 @@ +artifactId=loom-messaging-azure +artifactName=Loom Messaging Azure +artifactDescription=Asynchronous messaging implementations using Azure services. diff --git a/loom.messaging.contract/build.gradle b/loom.messaging.contract/build.gradle index d486cb9..1ac5aee 100644 --- a/loom.messaging.contract/build.gradle +++ b/loom.messaging.contract/build.gradle @@ -1,83 +1,6 @@ plugins { id 'java-library' - id 'maven-publish' - id 'signing' } dependencies { } - -java { - withJavadocJar() - withSourcesJar() -} - -test { - dependsOn('editorconfigCheck', 'checkstyleMain') -} - -group = 'io.github.loom' -version = artifactVersion - -jar { - manifest { - attributes( - 'Specification-Title': artifactName, - 'Specification-Version': artifactVersion, - 'Specification-Vendor': 'io.github.loom', - 'Implementation-Title': artifactName, - 'Implementation-Version': artifactVersion, - 'Implementation-Vendor': 'io.github.loom' - ) - } -} - -publishing { - repositories { - maven { - name "OSSRH" - url "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/" - credentials { - username System.getenv("MAVEN_USERNAME") - password System.getenv("MAVEN_PASSWORD") - } - } - } - - publications { - maven(MavenPublication) { - artifactId artifactId - from components.java - pom { - name = artifactName - description = artifactDescription - url = "https://github.com/loom/loom-java" - licenses { - license { - name = "MIT License" - url = "https://github.com/loom/loom-java/blob/main/LICENSE" - } - } - developers { - developer { - id = "gyuwon" - name = "Gyuwon Yi" - email = "gyuwon@live.com" - } - } - scm { - connection = "https://github.com/loom/loom-java.git" - developerConnection = "https://github.com/loom/loom-java.git" - url = "https://github.com/loom/loom-java" - } - } - } - } -} - -signing { - def signingKey = System.getenv("SIGNING_KEY") - def signingPassword = System.getenv("SIGNING_PASSWORD") - useInMemoryPgpKeys(signingKey, signingPassword) - sign publishing.publications.maven -} diff --git a/loom.messaging.contract/gradle.properties b/loom.messaging.contract/gradle.properties index 01db447..b17202a 100644 --- a/loom.messaging.contract/gradle.properties +++ b/loom.messaging.contract/gradle.properties @@ -1,4 +1,3 @@ artifactId=loom-messaging-contract artifactName=Loom Messaging Contract -artifactVersion=0.0.1 artifactDescription=Define types for messaging contracts. diff --git a/loom.type/build.gradle b/loom.type/build.gradle index d486cb9..1ac5aee 100644 --- a/loom.type/build.gradle +++ b/loom.type/build.gradle @@ -1,83 +1,6 @@ plugins { id 'java-library' - id 'maven-publish' - id 'signing' } dependencies { } - -java { - withJavadocJar() - withSourcesJar() -} - -test { - dependsOn('editorconfigCheck', 'checkstyleMain') -} - -group = 'io.github.loom' -version = artifactVersion - -jar { - manifest { - attributes( - 'Specification-Title': artifactName, - 'Specification-Version': artifactVersion, - 'Specification-Vendor': 'io.github.loom', - 'Implementation-Title': artifactName, - 'Implementation-Version': artifactVersion, - 'Implementation-Vendor': 'io.github.loom' - ) - } -} - -publishing { - repositories { - maven { - name "OSSRH" - url "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/" - credentials { - username System.getenv("MAVEN_USERNAME") - password System.getenv("MAVEN_PASSWORD") - } - } - } - - publications { - maven(MavenPublication) { - artifactId artifactId - from components.java - pom { - name = artifactName - description = artifactDescription - url = "https://github.com/loom/loom-java" - licenses { - license { - name = "MIT License" - url = "https://github.com/loom/loom-java/blob/main/LICENSE" - } - } - developers { - developer { - id = "gyuwon" - name = "Gyuwon Yi" - email = "gyuwon@live.com" - } - } - scm { - connection = "https://github.com/loom/loom-java.git" - developerConnection = "https://github.com/loom/loom-java.git" - url = "https://github.com/loom/loom-java" - } - } - } - } -} - -signing { - def signingKey = System.getenv("SIGNING_KEY") - def signingPassword = System.getenv("SIGNING_PASSWORD") - useInMemoryPgpKeys(signingKey, signingPassword) - sign publishing.publications.maven -} diff --git a/loom.type/gradle.properties b/loom.type/gradle.properties index eea26bf..39d2a82 100644 --- a/loom.type/gradle.properties +++ b/loom.type/gradle.properties @@ -1,4 +1,3 @@ artifactId=loom-type artifactName=Loom Type -artifactVersion=0.0.1 artifactDescription=Provide tools for type serialization strategies. diff --git a/loom.unittest/build.gradle b/loom.unittest/build.gradle index 8b2b084..7654acb 100644 --- a/loom.unittest/build.gradle +++ b/loom.unittest/build.gradle @@ -22,12 +22,9 @@ dependencies { testImplementation(project(':loom.eventsourcing.type')) } -java { - withJavadocJar() - withSourcesJar() -} - test { dependsOn('editorconfigCheck', 'checkstyleTest') useJUnitPlatform() } + +publishMavenPublicationToOSSRHRepository.enabled = false diff --git a/loom.unittest/gradle.properties b/loom.unittest/gradle.properties new file mode 100644 index 0000000..6f269e4 --- /dev/null +++ b/loom.unittest/gradle.properties @@ -0,0 +1,3 @@ +artifactId=loom-unittest +artifactName=Loom Unit Test +artifactDescription=Unit tests.