]> git.lizzy.rs Git - LightOverlay.git/blob - build.gradle
8b2329d0e6fe1d3d739fb0dc49b9584c93c7c2fc
[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
12 plugins {
13     id "com.wynprice.cursemaven" version "2.1.1"
14 }
15
16 apply plugin: 'net.minecraftforge.gradle'
17 apply plugin: 'eclipse'
18
19 version = "4.6"
20 group = "me.shedaniel" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
21 archivesBaseName = "LightOverlay"
22
23 sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
24
25 minecraft {
26     mappings channel: 'snapshot', version: '20200408-1.15.1'
27     runs {
28         client {
29             workingDirectory project.file('run')
30             // Recommended logging data for a userdev environment
31             property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
32             // Recommended logging level for the console
33             property 'forge.logging.console.level', 'debug'
34             mods {
35                 examplemod {
36                     source sourceSets.main
37                 }
38             }
39         }
40         server {
41             workingDirectory project.file('run')
42             // Recommended logging data for a userdev environment
43             property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
44             // Recommended logging level for the console
45             property 'forge.logging.console.level', 'debug'
46             mods {
47                 examplemod {
48                     source sourceSets.main
49                 }
50             }
51         }
52     }
53 }
54
55 repositories {
56     maven { url "https://files.minecraftforge.net/maven" }
57 }
58
59 dependencies {
60     minecraft 'net.minecraftforge:forge:1.15.2-31.1.39'
61     implementation fg.deobf("curse.maven:cloth-config-forge:2938583")
62 }
63
64 jar {
65     manifest {
66         attributes(["Specification-Title"     : "examplemod",
67                     "Specification-Vendor"    : "examplemodsareus",
68                     "Specification-Version"   : "1", // We are version 1 of the modlauncher specification
69                     "Implementation-Title"    : project.name,
70                     "Implementation-Version"  : "${version}",
71                     "Implementation-Vendor"   : "examplemodsareus",
72                     "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")],)
73     }
74 }