Skip to content

Commit

Permalink
Fix published capability names (#1)
Browse files Browse the repository at this point in the history
 Change project name to publish sensible capability names for library feature variants
  • Loading branch information
lukebemish authored Mar 25, 2024
1 parent 2e4b00e commit 47236a4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ plugins {

group = 'net.neoforged'
version = gradleutils.version
archivesBaseName = 'groovydslimprover'

gradleutils {
setupSigning()
Expand Down Expand Up @@ -61,8 +60,12 @@ dependencies {
runtimeImplementation gradleApi()

baseImplementation gradleApi()
baseImplementation sourceSets.runtime.output
baseImplementation sourceSets.main.output
baseImplementation(project(":")) {
capabilities {
requireCapability("net.neoforged:groovydslimprover-runtime")
}
}
baseImplementation(project(":"))

compileOnly 'org.jetbrains:annotations:24.0.0'

Expand Down Expand Up @@ -96,7 +99,6 @@ publishing {
publications {
register('mavenJava', MavenPublication) {
from components.java
artifactId = 'groovydslimprover'
gradleutils.sign(it)

pom {
Expand All @@ -117,4 +119,4 @@ publishing {
repositories {
maven gradleutils.publishingMaven
}
}
}
Empty file modified gradlew
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ plugins {
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.5.0'
}

rootProject.name = 'GroovyDSLImprover'
rootProject.name = 'groovydslimprover'

0 comments on commit 47236a4

Please sign in to comment.