-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
73 lines (59 loc) · 1.4 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
apply plugin: 'java'
apply plugin: 'idea'
modowner = "com.raspitor"
modname = "raspitor"
version = "0.0.1-SNAPSHOT"
pullInDeps = true
produceJar = false
vertxVersion = "2.0.0-CR1"
toolsVersion = "2.0.0-CR1"
group = modowner
archivesBaseName = modname
defaultTasks = ['assemble']
sourceCompatibility = '1.7'
targetCompatibility = '1.7'
project.ext.moduleName = "$modowner~$modname~$version"
repositories {
mavenCentral()
}
dependencies {
compile "io.vertx:vertx-core:2.0.0-CR1"
compile "io.vertx:vertx-platform:2.0.0-CR1"
}
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "io.vertx:vertx-core:2.0.0-CR1"
classpath "io.vertx:vertx-platform:2.0.0-CR1"
}
}
sourceSets {
main {
java {
srcDir "src/java"
}
}
}
task copyMod(type: Copy, dependsOn: 'classes', description: 'Assemble the module into the local mods directory') {
into("mods/$moduleName")
from compileJava
from 'src/mod.json'
into('lib') {
from configurations.compile
}
into('web') {
from 'src/web'
}
}
task modZip(type: Zip, dependsOn: 'copyMod', description: 'Package the module .zip file') {
group = 'vert.x'
description = "Assembles a vert.x module"
destinationDir = project.file('mods')
archiveName = "${modname}-${version}" + ".zip"
from copyMod
}
artifacts {
archives modZip
}