-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
68 lines (53 loc) · 1.5 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
plugins {
id "com.gradle.plugin-publish" version "0.9.7"
}
group 'com.qixalite'
version '1.6.2'
apply plugin: 'java'
apply plugin: 'maven'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
testCompile 'junit:junit:4.12'
compile 'com.google.code.gson:gson:2.8.0'
compile 'commons-io:commons-io:2.5'
compile 'com.google.guava:guava:21.0'
compile 'org.apache.httpcomponents:httpclient:4.2.2'
compile gradleApi()
}
uploadArchives {
repositories {
mavenDeployer {
repository(url: uri('.repo'))
}
}
}
task setupPluginUpload << {
def key=System.env.gradlePublishKey
def secret = System.env.gradlePublishSecret
if( !key || !secret)
{
throw new RuntimeException("gradlePublishKey and/or gradlePublishSecret are not defined environment variables")
}
System.properties.setProperty("gradle.publish.key", key)
System.properties.setProperty("gradle.publish.secret", secret)
}
tasks.publishPlugins.dependsOn tasks.setupPluginUpload
pluginBundle {
website = 'http://www.gradle.org/'
vcsUrl = 'https://github.com/qixalite/spongestart/'
description = "Gradle plugin to run sponge inside your workspace."
tags = ["sponge", "minecraft"]
plugins {
spongestart {
id = 'com.qixalite.spongestart'
displayName = 'SpongeStart'
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '3.4.1'
distributionUrl = "https://services.gradle.org/distributions/gradle-$gradleVersion-all.zip"
}