generated from liachmodded/carttemplate
-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
80 lines (67 loc) · 1.83 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
plugins {
id 'fabric-loom' version '0.9-SNAPSHOT'
id 'maven-publish'
id 'org.cadixdev.licenser' version '0.6.1'
}
def ENV = System.getenv()
version = project.modVersion + '.' + ENV.BUILD_NUMBER ?: "adhoc"
group = project.mavenGroup
sourceSets {
//modmenu {
// compileClasspath += sourceSets.main.output
//}
}
dependencies {
//to change the versions see the gradle.properties file
minecraft "com.mojang:minecraft:${project.minecraftVersion}"
mappings "net.fabricmc:yarn:${project.yarnMappings}"
modImplementation "net.fabricmc:fabric-loader:${project.loaderVersion}"
//modImplementation "io.github.prospector:modmenu:${project.modmenuVersion}"
}
license {
header = file('HEADER.txt')
include '**/*.java'
style.java = 'BLOCK_COMMENT'
newLine = false
}
tasks.withType(JavaCompile) {
options.release = 16
options.encoding = "UTF-8"
}
processResources {
inputs.properties "version": project.version
filesMatching('fabric.mod.json') {
expand "version": project.version
}
}
java {
withSourcesJar()
}
tasks.withType(Jar) {
from "LICENSE"
}
// configure the maven publication
publishing {
publications {
mavenJava(MavenPublication) {
artifact(remapJar) {
builtBy remapJar
}
artifact(sourcesJar) {
builtBy remapSourcesJar
}
}
}
repositories {
if (ENV.GITHUB_TOKEN) {
maven {
name = "GitHub"
url = uri("https://maven.pkg.github.com/liachmodded/brandpacket")
credentials {
username = ENV.GITHUB_ACTOR
password = ENV.GITHUB_TOKEN
}
}
}
}
}