]> git.lizzy.rs Git - LightOverlay.git/blob - build.gradle
41ad7771200b29d40073fa70490197d89c6bf34b
[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 = "4.2"
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: '20191218-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 repositories {
51     maven { url "https://minecraft.curseforge.com/api/maven/" }
52 }
53
54 dependencies {
55     minecraft 'net.minecraftforge:forge:1.15.1-30.0.7'
56     implementation "cloth-config-forge:ClothConfig2:2.0"
57 }
58
59 jar {
60     manifest {
61         attributes(["Specification-Title"     : "examplemod",
62                     "Specification-Vendor"    : "examplemodsareus",
63                     "Specification-Version"   : "1", // We are version 1 of the modlauncher specification
64                     "Implementation-Title"    : project.name,
65                     "Implementation-Version"  : "${version}",
66                     "Implementation-Vendor"   : "examplemodsareus",
67                     "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")],)
68     }
69 }