-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
112 lines (96 loc) · 3.02 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
plugins {
id("org.jetbrains.kotlin.jvm") version("1.7.10")
id("org.jetbrains.kotlin.plugin.serialization") version("1.7.10")
id("java")
id("maven-publish")
id("signing")
}
group "me.shedaniel"
version = "1.0." + (System.getenv("GITHUB_RUN_NUMBER") == null ? "9999" : System.getenv("GITHUB_RUN_NUMBER"))
sourceCompatibility = targetCompatibility = 1.8
test {
useJUnitPlatform()
}
tasks.test {
filter {
includeTestsMatching("me.shedaniel.linkie.core.tests.*")
}
}
repositories {
mavenCentral()
maven {
url "https://maven.fabricmc.net"
metadataSources {
it.mavenPom()
it.ignoreGradleMetadataRedirection()
}
}
maven { url "https://maven.quiltmc.org/repository/release" }
maven { url "https://jitpack.io" }
maven { url "https://maven.shedaniel.me" }
maven { url "https://maven.quiltmc.org/repository/release" }
}
dependencies {
compile("com.github.Chocohead:Tiny-Mappings-Parser:d96d4070293d9e7054693c21552eb1eb2b149679")
compile("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.10")
compile("org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.0")
compile("org.jetbrains.kotlin:kotlin-reflect:1.7.10")
compile("ch.qos.logback:logback-classic:1.2.3")
compile("org.dom4j:dom4j:2.1.3")
compile("net.fabricmc:stitch:0.5.1+build.77") {
exclude group: "net.fabricmc", module: "tiny-mappings-parser"
}
testCompile("org.junit.jupiter:junit-jupiter:5.6.2")
testCompile("org.jetbrains.kotlin:kotlin-test-junit5:1.7.10")
compile("com.soywiz.korlibs.korio:korio:$korlibs_version")
compile("com.squareup.okio:okio-multiplatform:$okio_version")
compile("org.quiltmc:mappings-hasher:1.1.1:all")
compile("com.google.guava:guava:31.1-jre")
compile("net.fabricmc:tiny-remapper:0.8.6")
compile("org.quiltmc:quiltflower:1.8.0")
}
def compile(str, closure = {}) {
dependencies.api(str, closure)
}
def testCompile(str, closure = {}) {
dependencies.testApi(str, closure)
}
compileKotlin {
kotlinOptions.suppressWarnings = true
kotlinOptions.jvmTarget = "1.8"
kotlinOptions {
freeCompilerArgs = ["-Xinline-classes", "-Xopt-in=kotlin.RequiresOptIn"]
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier("sources")
from sourceSets.main.allSource
}
task javadocs(type: Javadoc) {
source = sourceSets.main.allJava
}
task javadocsJar(type: Jar, dependsOn: javadocs) {
classifier("javadocs")
javadocs.failOnError false
from javadocs.destinationDir
}
publishing {
publications {
publication(MavenPublication) {
from components.java
artifact(sourcesJar)
artifact(javadocsJar)
}
}
repositories {
if (System.getenv("MAVEN_PASS") != null) {
maven {
url = "https://deploy.shedaniel.me/"
credentials {
username = "shedaniel"
password = System.getenv("MAVEN_PASS")
}
}
}
}
}