-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathbuild.gradle
104 lines (88 loc) · 2.67 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
97
98
99
100
101
102
103
104
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.gradle.api.plugins:gradle-nexus-plugin:0.7.1'
classpath "com.github.jengelman.gradle.plugins:shadow:1.2.3"
}
}
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'maven'
apply plugin: 'nexus'
apply plugin: 'eclipse'
apply plugin: 'com.github.johnrengelman.shadow'
group = 'org.robovm'
archivesBaseName = 'robovm-gradle-plugin'
version = '1.14.1-SNAPSHOT'
sourceCompatibility = '1.7'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
ext {
roboVMVersion = '1.14.1-SNAPSHOT'
}
repositories {
mavenLocal()
mavenCentral()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
}
dependencies {
compile gradleApi()
compile localGroovy()
compile "org.apache.commons:commons-compress:1.5"
compile "org.robovm:robovm-dist-compiler:${roboVMVersion}"
compile 'org.sonatype.aether:aether:1.13.1'
compile 'org.sonatype.aether:aether-connector-wagon:1.13.1'
compile 'org.apache.maven:maven-aether-provider:3.0.4'
compile 'org.apache.maven.wagon:wagon-provider-api:2.4'
compile 'org.apache.maven.wagon:wagon-http:2.4'
testCompile group: 'junit', name: 'junit', version: '4.11'
}
modifyPom {
project {
name 'RoboVM Gradle Plugin'
packaging 'jar'
description 'The RoboVM Gradle Plugin provides a way to build RoboVM apps using Gradle.'
url 'http://www.robovm.com/'
inceptionYear '2013'
scm {
url 'https://github.com/robovm/robovm-gradle-plugin.git'
connection 'scm:git:git://github.com/robovm/robovm-gradle-plugin.git'
developerConnection 'scm:git:[email protected]:robovm/robovm-gradle-plugin.git'
}
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
developers {
developer {
id 'jtakakura'
name 'Junji Takakura'
}
developer {
id 'ntherning'
name 'Niklas Therning'
}
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.5'
}
// apply from: 'local.gradle'
jar {
enabled = false
}
shadowJar {
classifier = ''
dependencies {
exclude(dependency("org.robovm:robovm-dist-compiler:${roboVMVersion}"))
}
relocate 'org.apache.http', 'org.robovm.org.apache.http'
relocate 'org.apache.commons.io', 'org.robovm.org.apache.commons.io'
}
assemble.dependsOn('shadowJar')
install.dependsOn('shadowJar')