forked from SpongePowered/MixinGradle
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
71 lines (60 loc) · 1.72 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
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "nl.javadude.gradle.plugins:license-gradle-plugin:0.11.0"
classpath "com.gradle.publish:plugin-publish-plugin:0.9.1"
}
}
apply plugin: "groovy"
apply plugin: "eclipse"
apply plugin: "com.gradle.plugin-publish"
defaultTasks "licenseFormat", "build"
group = "org.spongepowered"
version = buildVersion + (buildType == "RELEASE" ? "" : "-$buildType")
archivesBaseName = "mixingradle"
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
repositories {
mavenCentral()
}
configurations {
deployerJars
}
dependencies {
implementation gradleApi()
implementation "com.google.guava:guava:17.0"
implementation "org.ow2.asm:asm-debug-all:5.0.3"
deployerJars "org.apache.maven.wagon:wagon-ftp:2.7"
}
processResources {
from "LICENSE.txt"
}
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
}
pluginBundle {
website = "https://github.com/Skytils/MixinGradle"
vcsUrl = "https://github.com/Skytils/MixinGradle"
description = "Gradle plugin for SpongePowered Mixin"
tags = ["spongepowered", "sponge", "mixin"]
plugins {
patcher {
id = "org.spongepowered.mixin"
displayName = "SpongePowered Mixin Gradle Plugin"
}
}
}