mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-27 21:22:56 +00:00
Update build with POM exclusions for older builds and maven repo switch
This commit is contained in:
1 parent
bd4076714d
commit
c338f0c7a4
2 files changed
+33
-6
No files matched your search
+32
-5
@@ -107,8 +107,8 @@ dependencies {
|
||||
def guava = 'com.google.guava:guava:21.0' // from mc1.12 onwards
|
||||
def log4j2 = 'org.apache.logging.log4j:log4j-core:2.0-beta9'
|
||||
|
||||
implementation guava
|
||||
implementation log4j2
|
||||
compile guava
|
||||
compile log4j2
|
||||
compile 'com.google.code.gson:gson:2.2.4'
|
||||
if (Float.parseFloat(asmVersion) < 6) {
|
||||
compile "org.ow2.asm:asm-debug-all:$asmVersion"
|
||||
@@ -357,15 +357,28 @@ artifacts {
|
||||
archives javadocJar
|
||||
}
|
||||
|
||||
ext.excludePomDeps = [
|
||||
'asm-tree',
|
||||
'asm-commons',
|
||||
'asm-util',
|
||||
'log4j-core',
|
||||
'guava',
|
||||
'gson',
|
||||
]
|
||||
|
||||
uploadArchives {
|
||||
repositories {
|
||||
|
||||
mavenDeployer {
|
||||
configuration = configurations.deployerJars
|
||||
|
||||
if (project.hasProperty("spongeRepo")) {
|
||||
repository(url: project.spongeRepo) {
|
||||
authentication(userName: project.spongeUsername, password: project.spongePassword)
|
||||
if (buildType == 'RELEASE' && project.hasProperty("releaseRepo")) {
|
||||
repository(url: project.releaseRepo) {
|
||||
authentication(userName: project.releaseRepoUsername, password: project.releaseRepoPassword)
|
||||
}
|
||||
} else if (buildType == 'SNAPSHOT' && project.hasProperty("snapshotRepo")) {
|
||||
repository(url: project.snapshotRepo) {
|
||||
authentication(userName: project.snapshotRepoUsername, password: project.snapshotRepoPassword)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -398,7 +411,21 @@ uploadArchives {
|
||||
}
|
||||
}
|
||||
}
|
||||
whenConfigured {
|
||||
dependencies = dependencies.findAll {
|
||||
!it.artifactId.matches(excludePomDeps.join('|'))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
install.repositories.mavenInstaller.pom {
|
||||
whenConfigured {
|
||||
dependencies = dependencies.findAll {
|
||||
!it.artifactId.matches(excludePomDeps.join('|'))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -906,7 +906,7 @@ final class MixinConfig implements Comparable<MixinConfig>, IMixinConfig {
|
||||
/**
|
||||
* Get the list of mixin classes we will be applying
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings({"unchecked", "rawtypes"})
|
||||
public List<String> getClasses() {
|
||||
Builder<String> list = ImmutableList.<String>builder();
|
||||
for (List<String> classes : new List[] { this.mixinClasses, this.mixinClassesClient, this.mixinClassesServer} ) {
|
||||
|
||||
Reference in new issue
Block a user