This repository has been archived by the owner on Jul 25, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
96 lines (77 loc) · 2.25 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
90
91
92
93
94
95
96
plugins {
id 'java-gradle-plugin'
id 'groovy'
id 'eclipse'
id 'idea'
id 'maven-publish'
id 'com.gradle.plugin-publish' version '0.9.7'
id 'net.minecrell.licenser' version '0.3'
}
group = 'net.minecrell'
version = '2.2-7-SNAPSHOT'
description = 'ForgeGradle 2 extension for Vanilla mods'
sourceCompatibility = '1.6'
targetCompatibility = '1.6'
archivesBaseName = project.name.toLowerCase()
repositories {
jcenter()
maven {
name = 'forge'
url = 'http://files.minecraftforge.net/maven'
}
}
dependencies {
compile localGroovy()
compileOnly 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT'
}
license {
include '**/*.java'
include '**/*.groovy'
}
task sourceJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
pluginBundle {
website = 'https://github.com/Minecrell/VanillaGradle'
vcsUrl = website
description = project.description
tags = ['minecraft', 'mcp', 'sponge']
plugins {
serverPlugin {
id = 'net.minecrell.vanillagradle.server'
displayName = 'VanillaGradle server plugin'
description = 'Provides a MCP workspace for the Vanilla server with all run tasks disabled'
}
clientPlugin {
id = 'net.minecrell.vanillagradle.client'
displayName = 'VanillaGradle client plugin'
description = 'Provides a MCP workspace for the Vanilla client with all run tasks disabled'
}
mergedPlugin {
id = 'net.minecrell.vanillagradle.merged'
displayName = 'VanillaGradle merged plugin'
description = 'Provides a MCP workspace with Vanilla client and server sources merged'
}
}
mavenCoordinates {
artifactId = project.archivesBaseName
}
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId project.archivesBaseName
from components.java
artifact sourceJar
repositories {
maven {
url = System.getenv('REPO_' + (version.endsWith('-SNAPSHOT') ? 'SNAPSHOTS' : 'RELEASES')) ?: "$buildDir/repo"
}
}
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '3.3'
}