-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
115 lines (99 loc) · 2.61 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
buildscript {
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
}
plugins {
id "com.jfrog.bintray" version "1.7.3"
id "maven-publish"
id "java"
}
group 'com.bgpixel'
version '1.4.0'
sourceCompatibility = 1.8
compileJava.options.encoding = "UTF-8"
compileTestJava.options.encoding = "UTF-8"
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
javadoc.failOnError = false
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
def pomConfig = {
licenses {
license {
name "The Apache Software License, Version 2.0"
url "http://www.apache.org/licenses/LICENSE-2.0.txt"
distribution "repo"
}
}
developers {
developer {
id "knezmilos13"
name "Milos Milutinovic"
email "[email protected]"
}
}
scm {
url "https://github.com/knezmilos13/prettyboxformatter"
}
}
publishing {
publications {
mavenPublication(MavenPublication) {
from components.java
artifact sourcesJar {
classifier "sources"
}
artifact javadocJar {
classifier "javadoc"
}
groupId 'com.bgpixel'
artifactId 'prettyboxformatter'
version '1.4.0'
pom.withXml {
def root = asNode()
root.appendNode('description', 'A library for formatting/serializing text into boxes drawn using UTF-8 characters.')
root.appendNode('name', 'Pretty Box Formatter')
root.appendNode('url', 'https://github.com/knezmilos13/prettyboxformatter')
root.children().last() + pomConfig
}
}
}
}
bintray {
user = System.getProperty('bintray.user')
key = System.getProperty('bintray.key')
publications = ['mavenPublication']
pkg {
repo = 'PrettyBoxFormatter'
name = 'PrettyBoxFormatter'
userOrg = 'knezmilos13'
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/knezmilos13/prettyboxformatter'
version {
name = '1.4.0'
desc = '1.4.0'
released = new Date()
}
}
publish = true
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compile group: 'org.jetbrains', name: 'annotations', version: '13.0'
}