-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
68 lines (55 loc) · 1.54 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
plugins {
id 'java-gradle-plugin'
id 'com.gradle.plugin-publish' version '0.21.0'
id 'maven-publish'
}
apply from: 'version.gradle'
repositories {
mavenCentral()
}
version = pluginVersion
group = 'com.github.sahara3'
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
dependencies {
compileOnly 'org.projectlombok:lombok:1.18.32'
annotationProcessor 'org.projectlombok:lombok:1.18.32'
compileOnly 'org.apache.tomcat.embed:tomcat-embed-core:8.0.53'
implementation 'org.apache.commons:commons-lang3:3.14.0'
}
gradlePlugin {
plugins {
tomcatRunnerPlugin {
id = 'com.github.sahara3.tomcat-runner'
implementationClass = 'com.github.sahara3.gradle.tomcat.TomcatRunnerPlugin'
}
}
}
pluginBundle {
website = 'https://github.com/sahara3/gradle-tomcat-runner-plugin'
vcsUrl = 'https://github.com/sahara3/gradle-tomcat-runner-plugin.git'
description = 'Gradle plugin for running Apache Tomcat'
tags = ['tomcat']
plugins {
tomcatRunnerPlugin {
// id is captured from java-gradle-plugin configuration
displayName = 'Gradle Tomcat Runner plugin'
}
}
}
if (version.endsWith('-SNAPSHOT')) {
tasks.publishPlugins.enabled = false
tasks.publish.enabled = false
publishing {
publications {
pluginPublication(MavenPublication) {
from components.java
}
}
}
}
tasks.clean.doLast {
project.delete 'bin'
}