diff --git a/build.gradle b/build.gradle index 299efbe9c806..e8cc322f7bb1 100644 --- a/build.gradle +++ b/build.gradle @@ -1,4 +1,5 @@ plugins { + id 'maven-publish' id 'io.spring.nohttp' version '0.0.11' id 'io.freefair.aspectj' version '8.0.1' apply false // kotlinVersion is managed in gradle.properties @@ -41,8 +42,36 @@ configure(allprojects) { project -> } } + +def excludedModules = ['spring-context-indexer', 'spring-instrument', 'spring-framework-bom'] + +// Configuration for the subprojects to ensure all are published except excluded ones +configure(subprojects) { subproject -> + // Check if the subproject is not in the excluded list + if (!excludedModules.contains(subproject.name)) { + // Apply the 'maven-publish' plugin only to the included modules + apply plugin: 'maven-publish' + + publishing { + repositories { + maven { + url = uri("https://repository.tomitribe.com/service/local/staging/deploy/maven2") + credentials { + username = project.repoUser + password = project.repoPassword + } + } + } + } + } else { + // Print or log information about excluded projects + logger.lifecycle("Skipping publishing for project: ${subproject.name}") + } +} + + configure([rootProject] + javaProjects) { project -> - group = "org.springframework" + group = "org.tomitribe.springframework" apply plugin: "java" apply plugin: "java-test-fixtures" diff --git a/framework-bom/framework-bom.gradle b/framework-bom/framework-bom.gradle index 840f20537fa2..c5c2b2b0b9cb 100644 --- a/framework-bom/framework-bom.gradle +++ b/framework-bom/framework-bom.gradle @@ -3,7 +3,7 @@ description = "Spring Framework (Bill of Materials)" apply plugin: 'java-platform' apply from: "$rootDir/gradle/publications.gradle" -group = "org.springframework" +group = "org.tomitribe.springframework" dependencies { constraints { diff --git a/gradle.properties b/gradle.properties index 07d3d7f9db9e..05f0ecc8ffdb 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -version=6.0.23-SNAPSHOT +version=6.0.23.RELEASE-TT.1 org.gradle.caching=true org.gradle.jvmargs=-Xmx2048m