mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-03-28 04:07:01 -05:00
Tweak publications to match upstream more closely
- Removes one duplicate publication (plugin), it already exists in the gradle plugin development plugin. - Removed some minor differences in the snapshot publications to match upstream to reduce merge conflicts.
This commit is contained in:
14
build.gradle
14
build.gradle
@@ -239,17 +239,10 @@ import org.w3c.dom.Node
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
plugin(MavenPublication) { publication ->
|
||||
groupId project.group
|
||||
artifactId project.archivesBaseName
|
||||
version project.version
|
||||
|
||||
from components.java
|
||||
}
|
||||
|
||||
if (isSnapshot) return
|
||||
|
||||
mavenSnapshot(MavenPublication) { publication ->
|
||||
// Also publish a snapshot so people can use the latest version if they wish
|
||||
snapshot(MavenPublication) { publication ->
|
||||
groupId project.group
|
||||
artifactId project.archivesBaseName
|
||||
version baseVersion + '-SNAPSHOT'
|
||||
@@ -257,7 +250,8 @@ publishing {
|
||||
from components.java
|
||||
}
|
||||
|
||||
pluginSnapshot(MavenPublication) {
|
||||
// Manually crate the plugin marker for snapshot versions
|
||||
snapshotPlugin(MavenPublication) {
|
||||
groupId 'dev.architectury.loom'
|
||||
artifactId 'dev.architectury.loom.gradle.plugin'
|
||||
version baseVersion + '-SNAPSHOT'
|
||||
|
||||
Reference in New Issue
Block a user