-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
69 lines (57 loc) · 1.34 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
plugins {
id "java"
id "idea"
id "eclipse"
id "maven-publish"
id "java-gradle-plugin"
id "org.cadixdev.licenser" version "0.6.1"
}
group "dev.architectury"
def runNumber = System.getenv("GITHUB_RUN_NUMBER") ?: "9999"
version = base_version + "." + runNumber
logger.lifecycle(":building architectury pack200 v${version}")
tasks.withType(JavaCompile).configureEach {
it.options.encoding = "UTF-8"
it.options.release = 16
}
repositories {
maven { url "https://maven.architectury.dev/" }
gradlePluginPortal()
mavenCentral()
}
sourceSets {
loomStub
main.compileClasspath += loomStub.output
}
dependencies {
implementation gradleApi()
}
gradlePlugin {
plugins {
architect {
id = "dev.architectury.architectury-pack200"
implementationClass = "dev.architectury.pack200.java.Pack200Plugin"
}
}
}
java {
withSourcesJar()
}
publishing {
publications {
main(MavenPublication) {
from components.java
}
}
repositories {
if (System.getenv("MAVEN_PASS") != null) {
maven {
url = "https://deploy.shedaniel.me/"
credentials {
username = "shedaniel"
password = System.getenv("MAVEN_PASS")
}
}
}
}
}