-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
128 lines (109 loc) · 3.21 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
120
121
122
123
124
125
126
127
128
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0'
}
}
plugins {
id "com.github.hierynomus.license" version "0.11.0"
}
apply plugin: 'java'
apply plugin: 'project-report'
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.bintray'
repositories {
jcenter()
}
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
group = 'org.ventiv'
version = '1.1.3'
dependencies {
// Spring Boot
compile "org.springframework.boot:spring-boot:1.1.6.RELEASE"
compile 'javax.servlet:javax.servlet-api:3.1.0'
compile 'org.webjars:webjars-locator:0.17'
testCompile 'junit:junit:4.11'
// Testing Web Jars
testRuntime 'org.webjars:angularjs:1.3.0-rc.0'
testRuntime 'org.webjars:ng-grid:2.0.12'
testRuntime 'org.webjars:jquery:2.1.1'
testRuntime 'org.webjars:requirejs:2.1.14-3'
testRuntime 'org.webjars:kendo-ui-core:2014.2.716'
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact javadocJar {
classifier "javadoc"
}
artifact sourcesJar {
classifier "sources"
}
pom.withXml {
asNode().children().last() + {
resolveStrategy = Closure.DELEGATE_FIRST
name 'spring-boot-webjars-requirejs'
description 'Spring Boot WebJars RequireJs Config Generator'
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/license/LICENSE-2.0.txt'
distribution 'repo'
}
}
}
}
}
}
repositories {
maven {
//url "$buildDir/repo"
url "https://api.bintray.com/maven/ventiv-technology/Maven/spring-boot-webjars-requirejs"
credentials {
username = ""
password = ""
}
}
}
}
// To Deploy to BinTray (Be sure to bump version!):
// 1.) Enter bintray user that is part of ventiv-technology
// 2.) Get User's Key (https://bintray.com/profile/edit --> API Key)
// 3.) Execute gradlew bintrayUpload
// 4.) Navigate to https://bintray.com/ventiv-technology/Maven
// 5.) Click the publish button
bintray {
user = ""
key = ""
publications = ['mavenJava'] //When uploading Maven-based publication file
pkg {
repo = 'Maven'
userOrg = "ventiv-technology"
name = 'spring-boot-webjars-requirejs'
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.1-rc-4'
}
license {
header rootProject.file('license/HEADER')
strictCheck true
ext.year = Calendar.getInstance().get(Calendar.YEAR)
ext.name = 'Ventiv Technology'
}