-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
81 lines (70 loc) · 1.93 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
buildscript {
dependencies {
classpath 'be.jlr-home.gradle:scrPlugin:0.1.+'
classpath "com.eriwen:gradle-js-plugin:1.12.1"
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
}
plugins {
id "com.moowork.grunt" version "0.13"
id "com.moowork.node" version "0.13"
}
group 'io.github.thisisnozaku.charactercreator'
version '1.0.1'
apply plugin: "com.eriwen.gradle.js"
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'scr'
apply plugin: 'osgi'
sourceCompatibility = 1.8
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.11'
compile "io.github.thisisnozaku.charactercreator:neone-plugin-api:1.0"
compile 'org.apache.felix:org.apache.felix.scr.annotations:1.9.12'
compile 'com.jayway.jsonpath:json-path:2.2.0'
compile "javax.json:javax.json-api:1.0"
runtime "org.glassfish:javax.json:1.0.4"
}
jar {
manifest {
instruction 'Bundle-Category', 'plugin'
instruction 'Bundle-Description', 'Only War Plugin.'
instructionReplace 'Private-Package', 'io.github.thisisnozaku.*'
instructionReplace 'Export-Package', '!*'
instruction 'Import-Package', 'io.github.thisisnozaku.charactercreator.plugins; version=1.0.0'
}
}
sourceSets {
main {
output.resourcesDir "$buildDir/resources"
resources {
srcDirs = ['dist']
}
}
}
/*
* Move character.html, which is kept in the root of the resources directory
* for ease of testing due to relative urls, into the resources/templates
* build directory.
*/
processResources.doLast {
String source = "src/main/resources/character.html"
String dest = "$buildDir/resources/templates"
copy {
from source
into dest
}
copy {
from "src/main/resources/plugin.json"
into "$buildDir/resources"
}
}
processResources.dependsOn(grunt_default)