Skip to content
Open
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
196 changes: 84 additions & 112 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id "com.github.mxenabled.coppuccino" version "6.+" apply false
id "com.github.mxenabled.vogue" version "3.+" apply false
id "idea"
id "com.github.mxenabled.coppuccino" version "5.+" apply false
id "com.github.mxenabled.vogue" version "2.+"
id "io.freefair.lombok" version "8.+" apply false
id "io.github.gradle-nexus.publish-plugin" version "1.1.+"
id "com.netflix.nebula.maven-resolved-dependencies" version "21.2.0" apply false
Expand All @@ -11,63 +11,29 @@ version "7.0.0" // x-release-please-version

def platformProject = "platform"

allprojects {
if (it.name != platformProject) {
apply plugin: "java"
}

subprojects {
group "com.mx.path-facilities"
description "MX Path Facilities"
version rootProject.version
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17

repositories {
mavenCentral()
mavenLocal()
}

configurations.all {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}

ext {
pathSDKVersion = "[5.0,6.0)"
pathCoreVersion = "[6.0,7.0)"
}
}

subprojects {
if (it.name != platformProject) {
apply plugin: "java-library"
apply plugin: "groovy"
apply plugin: "maven-publish"
apply plugin: "signing"
apply plugin: "com.github.mxenabled.coppuccino"
apply plugin: "com.github.mxenabled.vogue"
apply plugin: "groovy"
apply plugin: "java-library"
apply plugin: "io.freefair.lombok"
apply plugin: "com.netflix.nebula.maven-resolved-dependencies"

dependencies {
constraints {
api "org.slf4j:slf4j-api:1.7.30"
}

implementation platform("com.mx.path-core:platform:${project.ext.pathSDKVersion}")
implementation "com.mx.path-core:common"
testImplementation "com.mx.path-core:testing"
testImplementation "org.spockframework:spock-core:2.4-M6-groovy-3.0"
}

test { useJUnitPlatform() }

compileJava { options.compilerArgs << "-parameters" }

javadoc {
classpath = configurations.compileClasspath
options {
setMemberLevel JavadocMemberLevel.PUBLIC
setAuthor true
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
withSourcesJar()
withJavadocJar()
}

coppuccino {
Expand All @@ -81,74 +47,89 @@ subprojects {
dependencyUpdatesOutputDir = "${projectDir}/build/dependencyUpdates"
}

task sourcesJar(type: Jar, dependsOn: classes) {
classifier = "sources"
from sourceSets.main.allSource
repositories {
mavenCentral()
mavenLocal()
}

task packageJavadoc(type: Jar) {
classifier = "javadoc"
from javadoc
dependencies {
implementation platform("com.mx.path-core:platform:${project.ext.pathCoreVersion}")
implementation "com.mx.path-core:common"

testImplementation "com.mx.path-core:testing"
}

artifacts {
archives sourcesJar
archives jar
archives packageJavadoc
test { useJUnitPlatform() }

compileJava { options.compilerArgs << "-parameters" }

javadoc {
classpath = configurations.compileClasspath
options {
setMemberLevel JavadocMemberLevel.PUBLIC
setAuthor true
}
}
}

apply plugin: "maven-publish"
apply plugin: "signing"

if (it.name != platformProject) {
publishing {
publications {
maven(MavenPublication) {
from components.java
artifact sourcesJar
artifact packageJavadoc

pom {
groupId = project.group
artifactId = project.name
name = project.name
description = project.description
url = "https://github.com/mxenabled/path-facilities"

developers {
developer {
name = "MX"
email = "path@mx.com"
organization = "MX Technologies Inc."
url = "http://www.mx.com"
}
}

licenses {
license {
name = "Proprietary"
url = "https://github.com/mxenabled/path-facilities/blob/master/LICENSE"
distribution = "repo"
}
}

scm {
connection = "scm:git:git@github.com:mxenabled/path-facilities.git"
url = "https://github.com/mxenabled/path-facilities/tree/master"
}
}
}
}
}
}

publishing {
publications.withType(MavenPublication).configureEach {
pom {
groupId = project.group
artifactId = project.name
name = project.name
description = project.description
url = "https://github.com/mxenabled/path-facilities"

developers {
developer {
name = "MX"
email = "path@mx.com"
organization = "MX Technologies Inc."
url = "http://www.mx.com"
}
}

licenses {
license {
name = "Proprietary"
url = "https://github.com/mxenabled/path-facilities/blob/master/LICENSE"
distribution = "repo"
}
}

signing {
def signingKey = findProperty("signingKey")
def signingPassword = findProperty("signingKeyPassword")
if (signingKey != null && signingKey != "") {
useInMemoryPgpKeys(signingKey, signingPassword)
sign publishing.publications.maven
logger.lifecycle("Configuring signing for ${project.name}")
} else {
logger.lifecycle("Skipping artifact signing for ${project.name} - missing signing key")
scm {
connection = "scm:git:git@github.com:mxenabled/path-facilities.git"
url = "https://github.com/mxenabled/path-facilities/tree/master"
}
}
}
}

signing {
def signingKey = findProperty("signingKey")
def signingPassword = findProperty("signingKeyPassword")
if (signingKey != null && signingKey != "") {
useInMemoryPgpKeys(signingKey, signingPassword)
sign publishing.publications
logger.lifecycle("Configuring signing for ${project.name}")
} else {
logger.lifecycle("Skipping artifact signing for ${project.name} - missing signing key")
}
}
}

nexusPublishing {
Expand All @@ -166,25 +147,16 @@ nexusPublishing {
}

task spotlessApply {
subprojects.each {
if (it.name != platformProject) {
it.afterEvaluate {
def spotlessApplyTask = it.tasks.findByName("spotlessApply")
dependsOn(spotlessApplyTask)
}
}
}
dependsOn subprojects.findAll { it.name != platformProject }.collect { "${it.path}:spotlessApply" }
}

task subdependencies {
subprojects.each {
if (it.name != platformProject) {
it.afterEvaluate {
def dependenciesTask = it.tasks.findByName("dependencies")
dependsOn(dependenciesTask)
}
}
}
dependsOn subprojects.findAll { it.name != platformProject }.collect { "${it.path}:dependencies" }
}

project.tasks.getByPath("dependencies").finalizedBy("subdependencies")

wrapper {
gradleVersion = "7.6.4"
distributionType = Wrapper.DistributionType.ALL
}
10 changes: 2 additions & 8 deletions encryption-service-jasypt/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,12 @@ coppuccino {
coverage {
minimumCoverage = 1.00
}
dependencies {
excludePreReleaseVersions = true
}
}

dependencies {
implementation "org.jasypt:jasypt:1.9.3"
implementation "commons-codec:commons-codec:1.15"
implementation "commons-codec:commons-codec"
compileOnly "org.slf4j:slf4j-api"

//testing dependencies
testImplementation "org.mockito:mockito-inline:[5.0,6.0)"
testImplementation "org.slf4j:slf4j-simple:1.7.30"
testImplementation "org.spockframework:spock-core:2.4-M6-groovy-3.0"
testImplementation "org.slf4j:slf4j-simple"
}
2 changes: 0 additions & 2 deletions encryption-service-jasypt/dependency_suppression.xml

This file was deleted.

Loading
Loading