-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
115 lines (101 loc) · 3.35 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
plugins {
id 'java'
id 'java-library'
id 'maven-publish'
id "com.gradleup.shadow" version "8.3.2"
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
withSourcesJar()
}
group 'net.covers1624'
archivesBaseName = "FastRemapper"
version '0.3.2'
version = "$version." + (System.getenv("BUILD_NUMBER") ?: "1")
println "Starting build of ${archivesBaseName}, Version: ${version}"
repositories {
mavenLocal()
mavenCentral()
maven { url "https://maven.minecraftforge.net/" }
}
dependencies {
api 'net.covers1624:Quack:0.4.6.68'
api 'net.sf.jopt-simple:jopt-simple:5.0.4'
api 'org.ow2.asm:asm:9.7'
api('org.ow2.asm:asm-commons:9.7') {
exclude module: 'asm-tree'
}
api 'net.minecraftforge:srgutils:0.4.3'
compileOnly 'com.google.code.findbugs:jsr305:3.0.2'
compileOnly 'org.jetbrains:annotations:22.0.0'
testImplementation 'org.ow2.asm:asm-util:9.2'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.1'
}
jar {
manifest {
attributes 'Main-Class': 'net.covers1624.fastremap.FastRemapper'
attributes 'Multi-Release': 'true'
}
from file("LICENSE.txt")
}
shadowJar {
configurations = [project.configurations.runtimeClasspath]
manifest {
attributes 'Main-Class': 'net.covers1624.fastremap.FastRemapper'
attributes 'Multi-Release': 'true'
}
from file("LICENSE.txt")
}
assemble.dependsOn shadowJar
publishing {
repositories {
if (System.getenv('MAVEN_PASS')) {
maven {
url "https://nexus.covers1624.net/repository/maven-releases/"
credentials {
username 'covers1624'
password System.getenv('MAVEN_PASS')
}
}
}
}
publications {
FastRemapper(MavenPublication) {
groupId project.group
artifactId project.archivesBaseName
version project.version
from components["java"]
pom {
name = archivesBaseName
description = archivesBaseName
//The publish plugin doesnt like GString's here apparently..
url = "https://github.com/covers1624/${archivesBaseName}".toString()
scm {
url = "https://github.com/covers1624/${archivesBaseName}".toString()
connection = "scm:git:git://github.com/covers1624/${archivesBaseName}.git".toString()
connection = "scm:git:git@github.com:covers1624/${archivesBaseName}.git".toString()
}
issueManagement {
system = 'github'
url = "https://github.com/covers1624/${archivesBaseName}/issues".toString()
}
licenses {
license {
name = "MIT"
url = "https://raw.githubusercontent.com/covers1624/${archivesBaseName}/master/LICENSE.txt".toString()
distribution = 'repo'
}
}
developers {
developer {
id = 'covers1624'
name = 'covers1624'
}
}
}
}
}
}