-
Notifications
You must be signed in to change notification settings - Fork 62
/
build.gradle
66 lines (57 loc) · 1.79 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
plugins {
id 'com.gradle.plugin-publish' version '1.2.1'
id 'com.github.ben-manes.versions' version '0.47.0'
id 'com.github.hierynomus.license' version '0.16.1'
}
group = 'org.openjfx'
version = '0.1.1-SNAPSHOT'
java {
toolchain.languageVersion = JavaLanguageVersion.of(11)
}
repositories {
mavenCentral()
gradlePluginPortal()
}
dependencies {
implementation 'com.google.gradle:osdetector-gradle-plugin:1.7.3'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
tasks.named('test', Test) {
useJUnitPlatform()
}
gradlePlugin {
plugins {
javafxPlugin {
id = 'org.openjfx.javafxplugin'
displayName = 'JavaFX Gradle Plugin'
description = 'Plugin that makes it easy to work with JavaFX'
implementationClass = 'org.openjfx.gradle.JavaFXPlugin'
website = 'https://github.com/openjfx/javafx-gradle-plugin'
vcsUrl = 'https://github.com/openjfx/javafx-gradle-plugin'
tags.set(['java', 'javafx'])
}
}
}
publishing {
repositories {
maven {
url = "https://oss.sonatype.org/content/repositories/snapshots/"
def sonatypeUsername = providers.gradleProperty('sonatypeUsername')
def sonatypePassword = providers.gradleProperty('sonatypePassword')
if (sonatypeUsername.isPresent() && sonatypePassword.isPresent()) {
credentials {
username = sonatypeUsername.get()
password = sonatypePassword.get()
}
}
}
}
}
license {
skipExistingHeaders = true
mapping {
java = 'SLASHSTAR_STYLE'
}
}