forked from ice1k/darcula
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
109 lines (94 loc) · 2.96 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
apply plugin: 'java'
apply plugin: 'maven-publish'
apply plugin: 'signing'
group 'org.freeplane.bulenkov'
version '2021.7'
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) } } }
dependencies {
library name: 'iconloader'
library name: 'forms-rt-minimized'
configurations.compileOnly.extendsFrom configurations.library
implementation 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
}
publishing {
publications {
maven(MavenPublication.class) {
from components.java
groupId = group
artifactId = project.name
version = project.version
artifact sourcesJar
artifact javadocJar
pom {
name = project.name
description = 'A darcula laf available on maven repositories'
url = 'https://github.com/bulenkov/Darcula'
scm {
url = 'https://github.com/freeplane/darcula'
connection = 'scm:git:https://github.com/freeplane/darcula.git'
developerConnection = 'scm:git:[email protected]:freeplane/darcula.git'
}
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'bulenkov'
name = 'Konstantin Bulenkov'
email = '[email protected]'
}
developer {
id = 'ice1000'
name = 'Tesla (Yinsen) Ice Zhang'
email = '[email protected]'
}
developer {
id = 'dpolivaev'
name = 'Dimitry Polivaev'
email = '[email protected]'
}
}
}
}
}
repositories {
maven {
url = 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/'
credentials {
username ossrhUsername
password ossrhPassword
}
}
maven {
url = "${project.gradle.gradleUserHomeDir}/local-artifacts"
}
}
}
signing {
sign publishing.publications.maven
}