-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
89 lines (74 loc) · 1.9 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
plugins { id "com.jfrog.bintray" version "1.7.3" }
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'maven-publish'
group 'com.bulenkov'
version '2018.2'
sourceCompatibility = 1.8
targetCompatibility = 1.8
tasks.withType(JavaCompile) { options.encoding = 'UTF-8' }
repositories {
mavenCentral()
flatDir { dirs 'libs' }
}
sourceSets {
main.java.srcDirs = ['src']
main.resources.srcDirs = ['res']
test.java.srcDirs = ['test']
}
configurations { library }
jar { from { configurations.library.collect { it.isDirectory() ? it : zipTree(it) } } }
bintray {
user = "ice1000"
key = findProperty("key").toString()
configurations = ["archives"]
pkg {
name = project.name
repo = "ice1000"
githubRepo = "ice1k/darcula"
publicDownloadNumbers = true
vcsUrl = "https://github.com/ice1k/darcula.git"
version {
name = project.version
vcsTag = "v$project.version"
websiteUrl = "https://github.com/ice1k/darcula/releases/tag/$vcsTag"
}
}
}
publishing {
publications {
mavenJava(MavenPublication.class) {
from components.java
groupId = group
artifactId = project.name
version = project.version
artifact sourcesJar
pom.withXml {
def root = asNode()
root.appendNode("description", "A darcula laf available on maven repositories")
root.appendNode("name", project.name)
root.children().last()
}
}
}
}
dependencies {
library name: 'iconloader'
library name: 'forms-rt-minimized'
configurations.compile.extendsFrom configurations.library
compile group: 'org.jetbrains', name: 'annotations', version: '16.0.1'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
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 jar
archives sourcesJar
archives javadocJar
}