-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
90 lines (73 loc) · 2.06 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
plugins {
id "com.github.johnrengelman.shadow" version "8.1.1" apply false
id "net.kyori.indra.licenser.spotless" version "3.1.3" apply false
}
group "dev.architectury"
def runNumber = System.getenv("GITHUB_RUN_NUMBER") ?: "9999"
version = base_version + "." + runNumber
logger.lifecycle(":building architectury loom runtime v${version}")
subprojects {
apply plugin: 'java'
apply plugin: 'maven-publish'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'net.kyori.indra.licenser.spotless'
group = rootProject.group
version = rootProject.version
java {
withSourcesJar()
}
tasks.withType(JavaCompile).configureEach {
it.options.encoding = "UTF-8"
it.options.release = 8
}
repositories {
maven { url "https://maven.architectury.dev/" }
maven { url "https://maven.fabricmc.net/" }
maven {
url "https://maven.minecraftforge.net/"
metadataSources {
artifact()
}
}
mavenCentral()
}
configurations {
include
compileOnly.extendsFrom include
}
indraSpotlessLicenser {
licenseHeaderFile rootProject.file("HEADER")
newLine true
property 'name', 'architectury'
extraConfig {
yearSeparator '-'
}
}
jar {
archiveClassifier = "raw"
}
shadowJar {
configurations = [project.configurations.include]
archiveClassifier = ""
}
assemble.dependsOn shadowJar
publishing {
publications {
main(MavenPublication) {
shadow.component it
artifact sourcesJar
}
}
repositories {
if (System.getenv("MAVEN_PASS") != null) {
maven {
url = "https://deploy.shedaniel.me/"
credentials {
username = "shedaniel"
password = System.getenv("MAVEN_PASS")
}
}
}
}
}
}