This repository has been archived by the owner on Nov 16, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
86 lines (74 loc) · 2 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
buildscript {
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
dependencies {
classpath 'org.akhikhl.wuff:wuff-plugin:0.0.12'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:0.5'
}
}
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'org.akhikhl.wuff.eclipse-bundle'
apply plugin: 'com.jfrog.bintray'
sourceCompatibility = 1.7
group = 'io.github.kewne'
version = '1.0.2-SNAPSHOT'
repositories {
mavenLocal()
mavenCentral()
}
task release {}
if (version.endsWith('RELEASE')) {
release.dependsOn bintrayUpload
}
dependencies {
compile (group: 'org.eclipse.birt.runtime', name: 'org.eclipse.birt.runtime', version: '4.4.1') {
exclude module: 'flute'
}
compile group: 'javax.servlet', name: 'javax.servlet-api', version: '3.1.0'
compile group: 'org.springframework', name: 'spring-webmvc', version: '4.1.2.RELEASE'
testCompile group: 'junit', name: 'junit', version: '4.11'
}
jar {
manifest {
instruction 'Require-Bundle: org.eclipse.core.runtime'
instruction 'Require-Bundle: org.eclipse.birt.report.engine'
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.2.1'
}
task sourceJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourceJar
archives javadocJar
}
bintray {
user = System.getProperty("bintray_user")
key = System.getProperty("bintray_apikey")
configurations = ['archives']
dryRun = false
publish = true
pkg {
repo = 'maven'
name = 'spring-birt'
websiteUrl = 'https://github.com/kewne/spring-birt'
issueTrackerUrl = 'https://github.com/kewne/spring-birt/issues'
vcsUrl = '[email protected]:kewne/spring-birt'
licenses = ['Apache-2.0']
publicDownloadNumbers = true
version {
name = project.version
}
}
}