-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
126 lines (105 loc) · 2.78 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
buildscript {
repositories {
jcenter()
maven {
name "forge"
url "http://files.minecraftforge.net/maven"
}
}
dependencies {
classpath "net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT"
classpath group: "org.jetbrains.kotlin", name: "kotlin-gradle-plugin", version: kotlin_version
}
}
plugins {
id "com.matthewprenger.cursegradle" version "1.0.8"
}
apply plugin: "net.minecraftforge.gradle.forge"
apply plugin: "kotlin"
version = "1.0"
group = "me.flyinglawnmower.jd"
archivesBaseName = "jukediscord"
minecraft {
version = minecraft_version + "-" + forge_version
runDir = "run"
mappings = "snapshot_20161111"
}
repositories {
jcenter()
maven {
url "http://jcenter.bintray.com"
}
maven {
url "https://jitpack.io"
}
maven {
url "http://mvn.rx14.co.uk/shadowfacts/"
}
}
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
processResources {
inputs.property "version", project.version
inputs.property "mcversion", project.minecraft.version
from(sourceSets.main.resources.srcDirs) {
include "mcmod.info"
expand "version": project.version, "mcversion": project.minecraft.version
}
from(sourceSets.main.resources.srcDirs) {
exclude "mcmod.info"
}
}
configurations {
shade
compile.extendsFrom shade
}
dependencies {
deobfCompile group: "net.shadowfacts", name: "Forgelin", version: "1.2.0"
shade "com.github.austinv11:Discord4j:2.7.0"
shade "org.jetbrains.kotlin:kotlin-runtime:${kotlin_version}"
shade "org.jetbrains.kotlin:kotlin-stdlib:${kotlin_version}"
}
jar {
configurations.shade.each { dep ->
from(project.zipTree(dep)) {
exclude "META-INF", "META-INF/**", "**/about.html", "*/about.html", "about.html"
}
}
}
reobf {
jar {
extraLines += [ "PK: kotlin me/kotlin" ]
}
}
task gitRelease {
doLast {
println("Doing github release tasks")
}
}
task fullRelease {
doLast {
println("Pushing to curseforge and doing github release tasks")
}
}
task changeLog(type: Exec) {
commandLine "github_changelog_generator"
}
task addReleases(type: Exec) {
commandLine "chandler", "push"
}
curseforge {
println System.getenv("curseForgeApiKey")
apiKey = System.getenv("curseForgeApiKey")
project {
id = "256691"
mainArtifact jar
changelog = "initial release" // A file can also be set using: changelog = file('CHANGELOG.md')
releaseType = "beta"
addGameVersion '1.10.2'
}
}
changeLog.dependsOn gitRelease
addReleases.dependsOn changeLog
/*fullRelease.dependsOn curseforge
changeLog.dependsOn fullRelease
addReleases.dependsOn changeLog*/