forked from dukke/FXRibbon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
67 lines (57 loc) · 1.5 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
plugins {
id "com.jfrog.bintray" version "1.7.3"
id "java-library"
id "maven-publish"
}
sourceCompatibility = '1.8'
group = 'com.pixelduke'
version = '1.0.1'
def versionDescription = 'FXRibbon First release'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
jar {
manifest {
attributes( 'Implementation-Title': project.name,
'Implementation-Version': project.version)
}
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
task sourceJar(type: Jar) {
from sourceSets.main.allJava
classifier "sources"
}
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
pkg {
repo = 'maven'
name = project.name
//userOrg = 'dukke'
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/dukke/FXRibbon.git'
publications = ['mavenJava']
websiteUrl = 'https://www.pixelduke.com/fxribbon'
issueTrackerUrl = 'https://github.com/dukke/FXRibbon/issues'
publicDownloadNumbers = true
version {
name = project.version
desc = versionDescription // Version description
vcsTag = project.version
}
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourceJar {
classifier "sources"
}
artifact javadocJar {
classifier "javadoc"
}
}
}
}