-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
63 lines (51 loc) · 1.46 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
plugins {
id 'java'
id 'java-library'
id 'io.github.karlatemp.publication-sign' version '1.3.40'
id 'maven-publish'
}
allprojects {
group 'com.kasukusakura'
version '0.0.1'
repositories {
mavenCentral()
}
}
description 'A tool for setup flatlaf'
dependencies {
def flatlafVer = '2.6'
compileOnly "com.formdev:flatlaf:$flatlafVer"
compileOnly "com.formdev:flatlaf-extras:$flatlafVer"
compileOnly "com.formdev:flatlaf-intellij-themes:$flatlafVer"
testImplementation "com.formdev:flatlaf:$flatlafVer"
testImplementation "com.formdev:flatlaf-extras:$flatlafVer"
testImplementation "com.formdev:flatlaf-intellij-themes:$flatlafVer"
}
compileJava {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
task sourcesJar(type: Jar) {
archiveClassifier.set 'sources'
from sourceSets.main.allSource
}
task stubJavadoc(type: Jar) {
archiveBaseName.set 'base-javadoc'
archiveClassifier.set 'javadoc'
}
publishing {
publications {
maven(MavenPublication) {
groupId = rootProject.group
artifactId = rootProject.name
version = rootProject.version
from components.java
artifact rootProject.stubJavadoc
artifact sourcesJar
pom { pom ->
pom.name = rootProject.name
pom.description = rootProject.description
}
}
}
}