-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
51 lines (42 loc) · 932 Bytes
/
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
plugins {
alias libs.plugins.licenser apply false
alias libs.plugins.blossom apply false
}
subprojects {
apply plugin: 'java-gradle-plugin'
apply plugin: 'maven-publish'
apply plugin: 'org.quiltmc.gradle.licenser'
group 'org.quiltmc.gradle'
version '0.1.' + System.getenv().getOrDefault('BUILD_NUMBER', 'local')
repositories {
mavenCentral()
maven {
name 'Quilt'
url 'https://maven.quiltmc.org/repository/release'
}
maven {
name 'Fabric'
url 'https://maven.fabricmc.net'
}
}
license {
rule file("${rootDir}/codeformat/HEADER")
include '**/*.java'
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
withSourcesJar()
}
publishing {
repositories {
maven {
url = System.getenv('MAVEN_URL')
credentials {
username = System.getenv('MAVEN_USERNAME')
password = System.getenv('MAVEN_PASSWORD')
}
}
}
}
}