forked from openjfx/javafx-gradle-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
66 lines (58 loc) · 1.9 KB
/
build.gradle.kts
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 {
`java-gradle-plugin`
`maven-publish`
id("com.gradle.plugin-publish") version "1.2.1" // Plugin Publishing Plugin
}
repositories {
mavenCentral()
gradlePluginPortal() // Recommended for plugin publishing
}
dependencies {
implementation("com.google.gradle:osdetector-gradle-plugin:1.7.0")
implementation("org.javamodularity:moduleplugin:1.8.12")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.3.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.3.2")
}
tasks.named<Test>("test") {
useJUnitPlatform()
}
tasks.named<Copy>("processResources") {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
gradlePlugin {
plugins {
create("javafxPlugin") {
id = "com.github.javafx-gradle-plugin"
displayName = "JavaFX Gradle Plugin"
description = "A Gradle plugin that simplifies working with JavaFX projects."
implementationClass = "org.openjfx.gradle.JavaFXPlugin"
}
}
}
group = "com.github.raoulsson"
version = "0.0.17-raoulsson"
publishing {
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
groupId = "com.github.raoulsson"
artifactId = "javafx-gradle-plugin"
version = "0.0.17-raoulsson"
}
}
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/raoulsson/javafx-gradle-plugin")
credentials {
username = findProperty("gpr.user") as String? ?: System.getenv("GITHUB_ACTOR")
password = findProperty("gpr.key") as String? ?: System.getenv("GITHUB_TOKEN")
}
}
}
}
pluginBundle {
website = "https://github.com/openjfx/javafx-gradle-plugin"
vcsUrl = "https://github.com/openjfx/javafx-gradle-plugin"
tags = listOf("java", "javafx", "gradle-plugin")
}