Skip to content

Commit

Permalink
publish to different folders
Browse files Browse the repository at this point in the history
  • Loading branch information
wagyourtail committed Jun 7, 2024
1 parent b48c45c commit 22a66a1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
18 changes: 10 additions & 8 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -146,18 +146,20 @@ publishing {
}
}
publications {
create<MavenPublication>("mavenJava") {
create<MavenPublication>("agent") {
groupId = "xyz.wagyourtail.unimined.expect-platform"
artifactId = "expect-platform"
artifactId = "expect-platform-agent"
version = project.version.toString()

artifact(annotationJar) {
classifier = "annotations"
}
artifact(agentShadeJar) {}
}

artifact(agentShadeJar) {
classifier = "agent"
}
create<MavenPublication>("annotations") {
groupId = "xyz.wagyourtail.unimined.expect-platform"
artifactId = "expect-platform-annotations"
version = project.version.toString()

artifact(annotationJar) {}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ abstract class ExpectPlatformExtension(val project: Project) {
@get:Internal
val version = ExpectPlatformExtension::class.java.`package`.implementationVersion ?: "1.0.0-SNAPSHOT"

val annotationsDep = "xyz.wagyourtail.unimined.expect-platform:expect-platform:$version:annotations"
val agentDep = "xyz.wagyourtail.unimined.expect-platform:expect-platform:$version:agent"
val annotationsDep = "xyz.wagyourtail.unimined.expect-platform:expect-platform-annotations:$version"
val agentDep = "xyz.wagyourtail.unimined.expect-platform:expect-platform-agent:$version"

@JvmOverloads
fun platform(platformName: String, configuration: Configuration, action: ExpectPlatformParams.() -> Unit = {}) {
Expand Down

0 comments on commit 22a66a1

Please sign in to comment.