]> git.lizzy.rs Git - BoundingBoxOutlineReloaded.git/blob - build.gradle
Update to new FG plugin
[BoundingBoxOutlineReloaded.git] / build.gradle
1 buildscript {
2     repositories {
3         jcenter()
4         maven { url 'https://repo.spongepowered.org/maven' }
5         maven { url 'https://jitpack.io' }
6         maven { url 'https://files.minecraftforge.net/maven' }
7     }
8     dependencies {
9         classpath 'com.github.Irtimaled:ForgeGradle:2.6-SNAPSHOT'
10         classpath 'org.spongepowered:mixingradle:0.6-SNAPSHOT'
11     }
12 }
13
14 apply plugin: 'net.minecraftforge.gradle.tweaker-client'
15 apply plugin: 'java'
16 apply plugin: 'org.spongepowered.mixin'
17
18 group 'com.irtimaled'
19 version project.buildVersion + '-' + project.mcVersion
20 archivesBaseName = 'BBOutlineReloaded'
21
22 sourceCompatibility = 1.8
23 targetCompatibility = 1.8
24
25 repositories {
26     mavenCentral()
27     maven { url 'https://libraries.minecraft.net/' }
28     maven { url 'https://repo.spongepowered.org/maven/' }
29     maven { url 'https://jitpack.io' }
30 }
31
32 dependencies {
33     implementation('org.spongepowered:mixin:0.8') { transitive = false }
34     implementation('net.minecraft:launchwrapper:1.12') { transitive = false }
35     implementation 'org.ow2.asm:asm-tree:6.2'
36     implementation 'org.ow2.asm:asm-commons:6.2'
37     implementation "org.ow2.asm:asm-util:6.2"
38 }
39
40 minecraft {
41     version = project.mcVersion
42     mappings = 'snapshot_20190624'
43     runDir = 'run'
44     tweakClass = 'com.irtimaled.bbor.launch.ClientTweaker'
45     makeObfSourceJar = false
46     clientJvmArgs = ['-XstartOnFirstThread']
47 }
48
49 mixin {
50     defaultObfuscationEnv notch
51     add sourceSets.main, 'mixins.bbor.refmap.json'
52 }
53
54 sourceSets {
55     main
56     debug {
57         compileClasspath += main.compileClasspath
58     }
59 }
60
61 processResources {
62     filesMatching('profile.json') {
63         expand([
64                 'version'      : project.version,
65                 'mcVersion'    : project.mcVersion,
66                 'tweakClass'   : project.minecraft.tweakClass,
67                 'formattedTime': new Date().format("yyyy-MM-dd'T'HH:mm:ss'-08:00'")
68         ])
69     }
70
71     inputs.property "version", project.version
72     inputs.property "mcVersion", project.mcVersion
73 }
74
75 jar {
76     finalizedBy reobfJar
77     manifest {
78         attributes([
79                 "Main-Class": "com.irtimaled.bbor.Main",
80                 "Specification-Title": "bbor",
81                 "Specification-Vendor": "Irtimaled",
82                 "Specification-Version": "1", // We are version 1 of ourselves
83                 "Implementation-Title": project.name,
84                 "Implementation-Version": "${version}",
85                 "Implementation-Vendor": "Irtimaled",
86                 "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
87         ])
88     }
89
90     classifier = 'vanilla'
91 }
92
93 artifacts {
94     archives jar
95 }