forked from GloomyFolken/HookLib
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
89 lines (75 loc) · 2.71 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
buildscript {
repositories {
maven { url = 'https://maven.minecraftforge.net/' }
mavenCentral()
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:5.1.27'
}
}
def testBuild = false
apply plugin: 'net.minecraftforge.gradle'
// Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
version = '3.4'
group = 'io.gitlab.hohserg' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = 'hooklib'
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
minecraft {
mappings channel: 'snapshot', version: '20171003-1.12'
// makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
// accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
runs {
client {
workingDirectory project.file('run')
property "fml.coreMods.load", "gloomyfolken.hooklib.minecraft.MainHookLoader"
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
property 'forge.logging.console.level', 'debug'
}
server {
property "fml.coreMods.load", "gloomyfolken.hooklib.minecraft.MainHookLoader"
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
property 'forge.logging.console.level', 'debug'
}
}
}
dependencies {
minecraft 'net.minecraftforge:forge:1.12.2-14.23.5.2860'
compileOnly 'org.projectlombok:lombok:1.18.8'
annotationProcessor 'org.projectlombok:lombok:1.18.8'
}
jar {
manifest {
attributes 'FMLCorePlugin': 'gloomyfolken.hooklib.minecraft.MainHookLoader'
attributes 'FMLCorePluginContainsFMLMod': 'true'
attributes 'Created-By': '1.7.0 (Oracle Corporation)'
}
if (!testBuild) {
exclude('gloomyfolken/hooklib/example/**')
exclude('gloomyfolken/hooklib/helper/DictionaryGenerator.class')
}
destinationDirectory = file("$rootDir/production")
}
jar.finalizedBy('reobfJar')
publishing {
publications {
mavenJava(MavenPublication) {
artifactId "hooklib"
artifact jar
}
}
repositories {
maven {
name = "GitHubPackages"
url = "https://maven.pkg.github.com/hohserg1/HookLib"
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
}