forked from JabRef/afterburner.fx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
106 lines (92 loc) · 3 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
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
id 'org.openjfx.javafxplugin' version '0.1.0'
id "io.github.gradle-nexus.publish-plugin" version "2.0.0"
}
allprojects {
group = 'org.jabref'
version = '2.0.1-certak'
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
repositories {
mavenCentral()
}
}
apply plugin: 'java'
apply from: 'eclipse.gradle'
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
withJavadocJar()
withSourcesJar()
}
javafx {
version = "20"
modules = ['javafx.controls', 'javafx.fxml', 'javafx.swing']
}
dependencies {
implementation 'jakarta.inject:jakarta.inject-api:2.0.1'
implementation 'org.slf4j:slf4j-api:2.0.16'
implementation 'jakarta.annotation:jakarta.annotation-api:3.0.0'
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = 'afterburner.fx'
from components.java
pom {
name = 'afterburner.fx'
description = 'Afterburner.fx is a MVP framework for JavaFX.'
url = 'https://github.com/JabRef/afterburner.fx'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution = 'repo'
}
}
developers {
developer {
id = 'siedlerchr'
name = 'Christoph Schwentker'
}
developer {
id = 'koppor'
name = 'Oliver Kopp'
}
developer {
id = 'tobiasdiez'
name = 'Tobias Diez'
}
developer {
name = 'Adam Bien'
}
}
scm {
url = 'https://github.com/JabRef/afterburner.fx'
connection = 'scm:git:git://github.com/JabRef/afterburner.fx.git'
developerConnection = 'scm:git:[email protected]/JabRef/afterburner.fx.git'
}
}
}
}
}
signing {
required = isReleaseVersion
useInMemoryPgpKeys(System.getenv("SIGNING_KEY"), System.getenv("SIGNING_PASSWORD"))
sign publishing.publications.mavenJava
}
nexusPublishing {
repositories {
sonatype { //only for users registered in Sonatype after 24 Feb 2021
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_PASSWORD")
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
}
}
}