-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathbuild.gradle
76 lines (66 loc) · 1.87 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
plugins {
id 'java'
id 'java-library'
id 'maven-publish'
id 'signing'
id 'org.openjfx.javafxplugin' version '0.0.13'
}
group 'com.github.mouse0w0'
version '9.0.0'
repositories {
mavenCentral()
}
javafx {
version = "19"
modules = ['javafx.controls']
}
sourceCompatibility = targetCompatibility = 11
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
java {
withSourcesJar()
withJavadocJar()
}
publishing {
publications {
maven(MavenPublication) {
from components.java
pom {
name = "DarculaFX"
description = "JavaFX darcula theme."
url = "https://github.com/mouse0w0/darculafx"
licenses {
license {
name = "Apache License, Version 2.0"
url = "http://www.apache.org/licenses/LICENSE-2.0"
}
}
developers {
developer {
name = "Mouse"
email = "mouse0w0@qq.com"
}
}
scm {
url = "https://github.com/mouse0w0/darculafx.git"
}
}
}
}
repositories {
maven {
name = "OSSRH"
def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
credentials {
username = project.findProperty("ossUsername") ?: System.getenv("USERNAME")
password = project.findProperty("ossPassword") ?: System.getenv("PASSWORD")
}
}
}
}
signing {
sign publishing.publications.maven
}