]> git.lizzy.rs Git - LightOverlay.git/blob - build.gradle
Create LICENSE
[LightOverlay.git] / build.gradle
1 buildscript {
2     repositories {
3         maven { url = 'https://files.minecraftforge.net/maven' }
4         jcenter()
5         mavenCentral()
6     }
7     dependencies {
8         classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true
9     }
10 }
11 apply plugin: 'net.minecraftforge.gradle'
12 apply plugin: 'eclipse'
13
14 version = "1.0"
15 group = "me.shedaniel" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
16 archivesBaseName = "LightOverlay"
17
18 sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
19
20 minecraft {
21     mappings channel: 'snapshot', version: '20190625-1.14.3'
22     runs {
23         client {
24             workingDirectory project.file('run')
25             // Recommended logging data for a userdev environment
26             property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
27             // Recommended logging level for the console
28             property 'forge.logging.console.level', 'debug'
29             mods {
30                 examplemod {
31                     source sourceSets.main
32                 }
33             }
34         }
35         server {
36             workingDirectory project.file('run')
37             // Recommended logging data for a userdev environment
38             property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
39             // Recommended logging level for the console
40             property 'forge.logging.console.level', 'debug'
41             mods {
42                 examplemod {
43                     source sourceSets.main
44                 }
45             }
46         }
47     }
48 }
49
50 dependencies {
51     minecraft 'net.minecraftforge:forge:1.14.3-27.0.13'
52
53 }
54
55 jar {
56     manifest {
57         attributes(["Specification-Title"     : "examplemod",
58                     "Specification-Vendor"    : "examplemodsareus",
59                     "Specification-Version"   : "1", // We are version 1 of the modlauncher specification
60                     "Implementation-Title"    : project.name,
61                     "Implementation-Version"  : "${version}",
62                     "Implementation-Vendor"   : "examplemodsareus",
63                     "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")],)
64     }
65 }