forked from ImpactDevelopment/MixinGradle
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
75 lines (63 loc) · 1.58 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
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
}
}
plugins {
id "com.github.hierynomus.license" version "0.15.0"
}
apply plugin: 'groovy'
defaultTasks 'licenseFormat', 'build'
group = 'org.spongepowered'
version = buildVersion + (buildType == 'RELEASE' ? '' : "-$buildType")
archivesBaseName = 'mixingradle'
targetCompatibility = '1.8'
sourceCompatibility = '1.8'
repositories {
mavenCentral()
}
configurations {
deployerJars
}
dependencies {
implementation gradleApi()
compile group: 'com.google.guava', name: 'guava', version: '27.1-jre'
compile group: 'org.ow2.asm', name: 'asm-debug-all', version: '6.0_BETA'
deployerJars group: 'org.apache.maven.wagon', name: 'wagon-ftp', version: '3.3.2'
}
processResources {
from 'LICENSE.txt'
}
license {
ext {
name = project.name
organization = project.organization
url = project.url
}
include '**/*.groovy'
header file("HEADER.txt")
sourceSets = project.sourceSets
ignoreFailures false
strictCheck true
mapping {
java = 'SLASHSTAR_STYLE'
}
}
jar.manifest.mainAttributes (
"Built-By": System.properties['user.name'],
"Created-By": System.properties['java.vm.version'] + " (" + System.properties['java.vm.vendor'] + ")",
"Implementation-Title": name,
"Implementation-Version": version
)
task groovydocJar(type: Jar, dependsOn: groovydoc) {
from groovydoc.destinationDir
classifier = 'groovydoc'
}
artifacts {
archives jar
archives groovydocJar
}