forked from FabricMC/Mixin
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'FabricMC/main'
- Loading branch information
Showing
21 changed files
with
396 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,10 @@ buildscript { | |
} | ||
} | ||
|
||
plugins { | ||
id "me.modmuss50.remotesign" version "0.4.0" | ||
} | ||
|
||
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar | ||
|
||
// Apply plugin | ||
|
@@ -157,6 +161,7 @@ sourceSets { | |
ext.languageVersion = 16 | ||
ext.modularityExcluded = true // don't add ourselves | ||
} | ||
modularityDummy {} | ||
} | ||
|
||
// Because Mixin aims to support a variety of environments, we have to be able to run with older versions of GSON and Guava that lack official module | ||
|
@@ -364,7 +369,7 @@ if (JavaVersion.current().isJava8Compatible()) { | |
} | ||
|
||
task stagingJar(type: ShadowJar) { | ||
sourceSets.findAll { !(it.name =~ /example|test/) }.each { | ||
sourceSets.findAll { !(it.name =~ /example|test|modularityDummy/) }.each { | ||
from it.output | ||
} | ||
configurations = [project.configurations.stagingJar] | ||
|
@@ -491,6 +496,45 @@ publishing { | |
} | ||
} | ||
} | ||
|
||
pom { | ||
description = 'Fabric Mixin is a trait/mixin and bytecode weaving framework for Java using ASM.' | ||
url = 'https://github.com/FabricMC/Mixin' | ||
|
||
scm { | ||
connection = "scm:git:https://github.com/FabricMC/Mixin.git" | ||
developerConnection = "scm:git:[email protected]:FabricMC/Mixin.git" | ||
url = "https://github.com/FabricMC/Mixin" | ||
} | ||
|
||
issueManagement { | ||
system = "GitHub" | ||
url = "https://github.com/FabricMC/Mixin/issues" | ||
} | ||
|
||
licenses { | ||
license { | ||
name = 'The MIT License' | ||
url = 'https://raw.githubusercontent.com/FabricMC/Mixin/main/LICENSE.txt' | ||
} | ||
} | ||
|
||
developers { | ||
// Et. al. that arent in the fabric org on maven central | ||
|
||
developer { | ||
id = "modmuss50" | ||
name = "modmuss50" | ||
email = "[email protected]" | ||
} | ||
|
||
developer { | ||
id = "sfPlayer" | ||
name = "Player" | ||
email = "[email protected]" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
|
@@ -504,9 +548,27 @@ publishing { | |
} | ||
} | ||
} | ||
|
||
if (ENV.MAVEN_CENTRAL_URL) { | ||
repositories.maven { | ||
name "central" | ||
url ENV.MAVEN_CENTRAL_URL | ||
credentials { | ||
username ENV.MAVEN_CENTRAL_USERNAME | ||
password ENV.MAVEN_CENTRAL_PASSWORD | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
remoteSign { | ||
requestUrl = ENV.SIGNING_SERVER | ||
pgpAuthKey = ENV.SIGNING_PGP_KEY | ||
useDummyForTesting = ENV.SIGNING_SERVER == null | ||
sign publishing.publications.developer | ||
} | ||
|
||
// A task to ensure that the version being released has not already been released. | ||
task checkVersion { | ||
doFirst { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,11 @@ | ||
pluginManagement { | ||
repositories { | ||
gradlePluginPortal() | ||
maven { | ||
name = 'Fabric' | ||
url = 'https://maven.fabricmc.net/' | ||
} | ||
} | ||
} | ||
|
||
rootProject.name = name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.