forked from jbaruch/maven2gradle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
47 lines (36 loc) · 1.08 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
import java.text.SimpleDateFormat
apply plugin: 'application'
apply plugin: 'groovy'
apply plugin: 'maven'
apply plugin: 'idea'
group = 'org.gradle.tools'
archivesBaseName = 'maven2gradle'
version = '1.0-alpha-1'
applicationName = 'maven2gradle'
mainClassName = 'org.gradle.tools.Maven2Gradle'
sourceCompatibility = 1.6
targetCompatibility = 1.6
repositories {
mavenCentral()
}
dependencies {
groovy localGroovy()
compile group: 'org.apache.ant', name: 'ant', version: '1.8.2'
}
task copyJarToGradleHome(type: Copy, dependsOn: build) {
description = 'Copy output JAR to $GRADLE_HOME/lib'
from jar
into "$gradleHome/lib"
}
task copyScriptsToGradleHome(type: Copy) {
description = 'Copy shell scripts to $GRADLE_HOME/bin/'
from startScripts.outputs.files
into "$gradleHome/bin"
}
task copy2GradleHome(dependsOn: [copyJarToGradleHome, copyScriptsToGradleHome]) {
description = 'Copies the maven2gradle jar as well as the maven2gradle start scripts to the local GRADLE_HOME'
}
def getGradleHome() {
System.getenv()['GRADLE_HOME']
}
task wrapper(type: Wrapper)