Skip to content

Commit

Permalink
build: do not publish applications
Browse files Browse the repository at this point in the history
But enforce their platform BOMs.
  • Loading branch information
kris7t committed Jul 8, 2024
1 parent bbc730b commit 4217b24
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 21 deletions.
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/

import org.siouan.frontendgradleplugin.infrastructure.gradle.RunYarn
import tools.refinery.gradle.MavenPublishPlugin

plugins {
alias(pluginLibs.plugins.versions)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ plugins {
jacoco
java
id("tools.refinery.gradle.eclipse")
id("tools.refinery.gradle.maven-publish")
}

repositories {
Expand All @@ -27,7 +26,6 @@ configurations.testRuntimeClasspath {
val libs = the<LibrariesForLibs>()

dependencies {
implementation(platform(project(":refinery-bom-dependencies")))
compileOnly(libs.jetbrainsAnnotations)
testCompileOnly(libs.jetbrainsAnnotations)
testImplementation(libs.hamcrest)
Expand All @@ -51,10 +49,6 @@ java {
}
}

publishing.publications.named<MavenPublication>("mavenJava") {
from(components["java"])
}

tasks {
test {
useJUnitPlatform {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ val libs = the<LibrariesForLibs>()
dependencies {
implementation(libs.slf4j.simple)
implementation(libs.slf4j.log4j)
implementation(enforcedPlatform(project(":refinery-bom-dependencies")))
}

// See https://github.com/johnrengelman/shadow/issues/586
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2021-2023 The Refinery Authors <https://refinery.tools/>
* SPDX-FileCopyrightText: 2021-2024 The Refinery Authors <https://refinery.tools/>
*
* SPDX-License-Identifier: EPL-2.0
*/
Expand All @@ -8,4 +8,13 @@ package tools.refinery.gradle
plugins {
`java-library`
id("tools.refinery.gradle.internal.java-conventions")
id("tools.refinery.gradle.maven-publish")
}

dependencies {
api(platform(project(":refinery-bom-dependencies")))
}

publishing.publications.named<MavenPublication>("mavenJava") {
from(components["java"])
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import tools.refinery.gradle.utils.EclipseUtils
plugins {
`java-test-fixtures`
id("tools.refinery.gradle.internal.java-conventions")
id("tools.refinery.gradle.maven-publish")
}

publishing.publications {
Expand Down
4 changes: 3 additions & 1 deletion subprojects/bom/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* SPDX-License-Identifier: EPL-2.0
*/

import tools.refinery.gradle.JavaLibraryPlugin

plugins {
id("tools.refinery.gradle.maven-bom")
}
Expand All @@ -25,7 +27,7 @@ dependencies {
gradle.projectsEvaluated {
dependencies.constraints {
for (subproject in rootProject.subprojects) {
if (subproject.plugins.hasPlugin(JavaPlugin::class)) {
if (subproject.plugins.hasPlugin(JavaLibraryPlugin::class)) {
api(project(subproject.path))
}
}
Expand Down
3 changes: 2 additions & 1 deletion subprojects/docs/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/

import org.siouan.frontendgradleplugin.infrastructure.gradle.RunYarn
import tools.refinery.gradle.JavaLibraryPlugin
import tools.refinery.gradle.utils.SonarPropertiesUtils

plugins {
Expand All @@ -24,7 +25,7 @@ val javadocs: Configuration by configurations.creating {
dependencies {
gradle.projectsEvaluated {
for (subproject in rootProject.subprojects) {
if (subproject.plugins.hasPlugin(JavaPlugin::class)) {
if (subproject.plugins.hasPlugin(JavaLibraryPlugin::class)) {
javadocs(project(subproject.path, "javadocElements"))
}
}
Expand Down
2 changes: 0 additions & 2 deletions subprojects/docs/src/develop/javadoc.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@ Here you can find API documentation for Refinery components automatically genera
# Refinery

* [`tools.refinery:refinery-generator`](pathname://refinery-generator)
* [`tools.refinery:refinery-generator-cli`](pathname://refinery-generator-cli)
* [`tools.refinery:refinery-language`](pathname://refinery-language)
* [`tools.refinery:refinery-language-ide`](pathname://refinery-language-ide)
* [`tools.refinery:refinery-language-model`](pathname://refinery-language-model)
* [`tools.refinery:refinery-language-semantics`](pathname://refinery-language-semantics)
* [`tools.refinery:refinery-language-web`](pathname://refinery-language-web)
* [`tools.refinery:refinery-logic`](pathname://refinery-logic)
* [`tools.refinery:refinery-store`](pathname://refinery-store)
* [`tools.refinery:refinery-store-dse`](pathname://refinery-store-dse)
Expand Down
5 changes: 0 additions & 5 deletions subprojects/generator-cli/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ plugins {
id("tools.refinery.gradle.java-application")
}

mavenArtifact {
name = "Generator CLI"
description = "CLI for model generation"
}

dependencies {
implementation(project(":refinery-generator"))
implementation(libs.jcommander)
Expand Down
4 changes: 0 additions & 4 deletions subprojects/language-web/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ plugins {
id("tools.refinery.gradle.xtext-generated")
}

mavenArtifact {
description = "Cloud-based partial modeling environment"
}

val webapp: Configuration by configurations.creating {
isCanBeConsumed = false
isCanBeResolved = true
Expand Down
4 changes: 3 additions & 1 deletion subprojects/versions/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* SPDX-License-Identifier: EPL-2.0
*/

import tools.refinery.gradle.JavaLibraryPlugin

plugins {
`version-catalog`
id("tools.refinery.gradle.maven-publish")
Expand Down Expand Up @@ -33,7 +35,7 @@ publishing.publications.named<MavenPublication>("mavenJava") {
gradle.projectsEvaluated {
catalog.versionCatalog {
for (subproject in rootProject.subprojects) {
if (subproject.plugins.hasPlugin(JavaPlugin::class)) {
if (subproject.plugins.hasPlugin(JavaLibraryPlugin::class)) {
val alias = subproject.name.removePrefix("refinery-")
val group = subproject.group.toString()
val versionRef = if (interpreterGroup == group) interpreterVersion else refineryVersion
Expand Down

0 comments on commit 4217b24

Please sign in to comment.