-
Notifications
You must be signed in to change notification settings - Fork 41
/
build.gradle.kts
107 lines (92 loc) · 4.18 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
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
plugins {
groovy
`java-gradle-plugin`
org.gradle.playframework.`test-setup`
org.gradle.playframework.`integration-test-fixtures`
org.gradle.playframework.`integration-test`
org.gradle.playframework.`user-guide`
org.gradle.playframework.`github-pages`
org.gradle.playframework.`documentation-test`
id("com.gradle.plugin-publish") version "1.1.0"
}
group = "org.gradle.playframework"
version = "0.14"
repositories {
mavenCentral()
}
dependencies {
testImplementation("org.spockframework:spock-core:1.2-groovy-2.5") {
exclude(group = "org.codehaus.groovy")
}
integTestFixturesImplementation("com.google.guava:guava:23.0")
integTestFixturesImplementation("org.hamcrest:hamcrest-library:1.3")
integTestFixturesImplementation("org.apache.ant:ant:1.9.3")
integTestFixturesImplementation("org.freemarker:freemarker:2.3.30")
docTestImplementation("org.gradle.exemplar:samples-check:1.0.0")
docTestRuntimeOnly("org.slf4j:slf4j-simple:1.7.16")
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
}
gradlePlugin {
testSourceSets(sourceSets.integTest.get(), sourceSets.docTest.get())
plugins {
register("play-twirl-plugin") {
id = "org.gradle.playframework-twirl"
displayName = "Play Twirl Plugin"
description = "Plugin for compiling Twirl sources in a Play application."
implementationClass = "org.gradle.playframework.plugins.PlayTwirlPlugin"
}
register("play-routes-plugin") {
id = "org.gradle.playframework-routes"
displayName = "Play Routes Plugin"
description = "Plugin for compiling Play routes sources in a Play application."
implementationClass = "org.gradle.playframework.plugins.PlayRoutesPlugin"
}
register("play-application-plugin") {
id = "org.gradle.playframework-application"
displayName = "Play Application Plugin"
description = "Plugin for building a Play application."
implementationClass = "org.gradle.playframework.plugins.PlayApplicationPlugin"
}
register("play-javascript-plugin") {
id = "org.gradle.playframework-javascript"
displayName = "Play JavaScript Plugin"
description = "Plugin for adding JavaScript processing to a Play application."
implementationClass = "org.gradle.playframework.plugins.PlayJavaScriptPlugin"
}
register("play-distribution-plugin") {
id = "org.gradle.playframework-distribution"
displayName = "Play Distribution Plugin"
description = "Plugin for generating distributions for Play applications."
implementationClass = "org.gradle.playframework.plugins.PlayDistributionPlugin"
}
register("play-ide-plugin") {
id = "org.gradle.playframework-ide"
displayName = "Play IDE Plugin"
description = "Plugin for generating IDE project files for Play applications."
implementationClass = "org.gradle.playframework.plugins.PlayIdePlugin"
}
register("play-plugin") {
id = "org.gradle.playframework"
displayName = "Play Plugin"
description = "Plugin that supports building, testing and running Play applications with Gradle."
implementationClass = "org.gradle.playframework.plugins.PlayPlugin"
}
}
}
// Wire in the publishing credentials from the environment or as a project property
setFromEnvOrGradleProperty("gradle.publish.key", "GRADLE_PUBLISH_KEY")
setFromEnvOrGradleProperty("gradle.publish.secret", "GRADLE_PUBLISH_SECRET")
fun Project.setFromEnvOrGradleProperty(gradleProperty: String, environmentVariable: String) {
val envVar = providers.environmentVariable(environmentVariable).forUseAtConfigurationTime()
val gradleProp = providers.gradleProperty(gradleProperty).forUseAtConfigurationTime()
ext[gradleProperty] = envVar.orElse(gradleProp).getOrNull()
}
pluginBundle {
website = "https://gradle.github.io/playframework/"
vcsUrl = "https://github.com/gradle/playframework"
tags = listOf("playframework", "web", "java", "scala")
}