-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
118 lines (104 loc) · 3.01 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
116
117
118
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'java'
apply plugin: "org.jetbrains.kotlin.jvm"
apply plugin: "maven-publish"
apply plugin: 'signing'
group 'com.github.isyscore'
version '2.2.4.2'
repositories {
mavenCentral()
}
dependencies {
api "com.github.isyscore:common-jvm:2.2.4.2"
api "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4"
api 'me.friwi:jcefmaven:126.2.0'
api 'com.formdev:flatlaf:3.0'
api 'com.jtattoo:JTattoo:1.6.13'
api 'org.apache.xmlgraphics:batik-swing:1.17'
testImplementation 'com.fifesoft:rsyntaxtextarea:3.3.2'
testImplementation "junit:junit:4.13.2"
}
sourceCompatibility = 1.8
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
task sourcesJar(type: Jar) {
archiveClassifier = "sources"
from sourceSets.main.allJava
}
task javadocJar(type: Jar) {
archiveClassifier = "javadoc"
from javadoc.destinationDir
}
artifacts {
archives javadocJar, sourcesJar
}
publishing {
publications {
mavenKotlin(MavenPublication) {
groupId = "com.github.isyscore"
artifactId = "common-swing"
version = "2.2.4.2"
from components.java
artifact sourcesJar
artifact javadocJar
pom {
name = "common-swing"
description = "iSysCore Common Swing Library"
url = "https://github.com/isyscore/common-swing"
packaging = "jar"
licenses {
license {
name = "MIT License"
url = "https://github.com/isyscore/common-swing/blob/main/LICENSE"
}
}
developers {
developer {
id = "isyscore"
name = "isyscore"
email = "hexj@isyscore.com"
}
}
scm {
connection = "https://github.com/isyscore/common-swing"
developerConnection = "https://github.com/isyscore/common-swing"
url = "https://github.com/isyscore/common-swing"
}
}
}
}
repositories {
maven {
name = "Release"
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username = "$nexusUsername"
password = "$nexusPassword"
}
}
maven {
name = "Snapshot"
url = "https://oss.sonatype.org/content/repositories/snapshots/"
credentials {
username = "$nexusUsername"
password = "$nexusPassword"
}
}
}
}
signing {
sign publishing.publications.mavenKotlin
}