-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
119 lines (96 loc) · 2.86 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
plugins {
id "com.jfrog.bintray" version "1.7.3"
id "com.moowork.node" version "1.1.1"
}
description = "Use React-Select together with Tapestry"
group = "de.eddyson"
version = "0.2.7"
apply plugin: 'groovy'
apply plugin: 'maven'
def versions= [
tapestry: '5.4.3',
slf4j: '1.7.22',
// test scopes
spock: '1.1-groovy-2.4',
selenium: '3.5.3'
]
repositories {
jcenter()
}
sourceCompatibility = '1.8'
task sourceJar(type: Jar) {
dependsOn classes
classifier "sources"
from sourceSets.main.allSource
}
artifacts {
archives sourceJar
}
dependencies {
compile "org.slf4j:slf4j-api:$versions.slf4j"
compile "org.apache.tapestry:tapestry-core:$versions.tapestry"
testCompile "javax.servlet:servlet-api:2.5"
testCompile "org.spockframework:spock-tapestry:$versions.spock"
testCompile 'de.eddyson:tapestry-geb:0.37.2'
testCompile "org.seleniumhq.selenium:selenium-firefox-driver:$versions.selenium"
testCompile "org.seleniumhq.selenium:selenium-chrome-driver:$versions.selenium"
testCompile "io.github.bonigarcia:webdrivermanager:1.7.1"
testRuntime "org.slf4j:slf4j-simple:$versions.slf4j"
testRuntime 'de.eddyson:tapestry-react:0.30.2'
testRuntime "org.apache.tapestry:tapestry-webresources:$versions.tapestry"
}
jar {
manifest { attributes 'Tapestry-Module-Classes': 'de.eddyson.tapestry.react.select.ReactSelectModule' }
}
node.download = true
tasks.withType(Test){
systemProperties["tapestry.service-reloading-enabled"] = "false"
systemProperties["tapestry.execution-mode"] = "test"
systemProperty 'webappLocation', 'src/test/webapp'
systemProperty 'jettyPort', 9040
enableAssertions = true
testLogging {
exceptionFormat "full"
}
}
test {
systemProperty "geb.env", System.getProperty("geb.env") ?: 'firefox'
}
task createBundles(type: NpmTask) {
dependsOn npmInstall
// install the express package only
args = ['run', 'create-bundles']
}
processResources {
dependsOn npmInstall, createBundles
from('node_modules/react-select/dist'){
into 'META-INF/assets/de/eddyson/tapestry/react/select'
include '*.css'
}
from('rollup/dist'){
into 'de/eddyson/tapestry/react/select'
}
from('node_modules/classnames'){
into 'de/eddyson/tapestry/react/select'
include 'index.js'
rename { 'classnames.js' }
}
}
task runTestApp(type:JavaExec) {
main = 'org.apache.tapestry5.test.Jetty7Runner'
args "-d", "src/test/webapp/", "-p", "9040"
systemProperties["tapestry.execution-mode"] = "test"
classpath = configurations.testRuntime + sourceSets.test.output + sourceSets.main.output
}
bintray {
user = 'fooberger'
key = System.env.bintrayAPIKey
configurations = ['archives']
publish = true
pkg {
repo = 'maven'
name = 'de.eddyson:tapestry-react-select'
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/eddyson-de/tapestry-react-select'
}
}