forked from finos/plexus-interop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
59 lines (50 loc) · 1.43 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
import org.apache.tools.ant.taskdefs.condition.Os
repositories {
mavenCentral()
}
dependencies {
testCompile project(':dsl:gen:common')
testCompile project(':dsl:gen:meta')
testCompile project(':dsl:gen:proto')
testCompile project(':dsl:gen:csharp')
testCompile project(':dsl:interop-lang')
testCompile group: 'junit', name: 'junit', version: '4.12'
compile project(':dsl:gen:common')
compile project(':dsl:gen:meta')
compile project(':dsl:gen:ts')
compile project(':dsl:gen:js')
compile project(':dsl:gen:proto')
compile project(':dsl:gen:csharp')
compile project(':dsl:interop-lang')
compile group: 'com.beust', name: 'jcommander', version: '1.71'
}
buildscript {
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.1'
}
}
apply plugin: 'application'
apply plugin: 'com.github.johnrengelman.shadow'
mainClassName = 'com.db.plexus.interop.dsl.gen.cli.Main'
task copyJarToRootBin(type: Copy) {
def outputDir = '../../../bin/win-x86/sdk'
if (Os.isFamily(Os.FAMILY_MAC)) {
outputDir='../../../bin/osx-x64/sdk'
}
outputs.dir outputDir
inputs.dir 'build/libs'
from 'build/libs'
into outputDir
include "*-all.jar"
rename { String fileName ->
"plexusgen.jar"
}
}
build.dependsOn(copyJarToRootBin)
defaultTasks 'build'