-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
74 lines (63 loc) · 1.92 KB
/
Copy pathbuild.gradle
File metadata and controls
74 lines (63 loc) · 1.92 KB
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
task wrapper(type: Wrapper) {
gradleVersion = '2.4'
}
apply plugin: 'java'
apply plugin: 'groovy'
sourceCompatibility = 7
repositories {
mavenCentral()
jcenter()
}
configurations {
provided
provided.extendsFrom(compile)
}
sourceSets {
main.compileClasspath += configurations.provided
test.compileClasspath += configurations.provided
test.runtimeClasspath += configurations.provided
}
dependencies {
compile group: 'com.stansvec', name: 'dropwizard-authorization', version: '0.1.4'
compile group: 'javax.el', name: 'javax.el-api', version: '3.0.1-b04'
provided group: 'io.dropwizard', name: 'dropwizard-auth', version: '0.8.2'
testCompile group:'org.codehaus.groovy', name:'groovy-all', version:'2.4.3'
testCompile group:'org.spockframework', name:'spock-core', version:'1.0-groovy-2.4'
testCompile group: 'io.dropwizard', name: 'dropwizard-testing', version: '0.8.2'
testCompile (group: 'org.glassfish.jersey.test-framework.providers', name: 'jersey-test-framework-provider-grizzly2', version: '2.19') {
exclude group: 'javax.servlet', module: 'javax.servlet-api'
exclude group: 'junit', module: 'junit'
}
}
apply plugin: 'idea'
idea {
module {
scopes.PROVIDED.plus += [project.configurations.provided]
}
}
apply plugin: 'maven-publish'
task sourceJar(type: Jar) {
from sourceSets.main.allJava
classifier 'sources'
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId = 'com.stansvec'
version = '0.1.4'
from components.java
artifact sourceJar {
classifier 'sources'
}
}
}
repositories {
maven {
url 'https://api.bintray.com/maven/stansvec/maven/dropwizard-authorization-el'
credentials {
username 'stansvec'
password 'Insert API key here'
}
}
}
}