-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
88 lines (80 loc) · 2.16 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
buildscript {
repositories {
mavenCentral()
maven {
url "https://artifacts.fizzpod.com/public/mvn/"
}
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath ('com.fizzpod:gradle-plugin-opinion:18.0.4') {
exclude group: 'com.fizzpod', module: 'gradle-github-release-plugin'
}
}
}
apply plugin: 'com.fizzpod.pater-build'
apply plugin: 'com.fizzpod.github-release'
sourceSets {
main {
java {
srcDir 'buildSrc/src/main/java'
}
resources {
srcDir 'buildSrc/src/main/resources'
exclude 'META-INF/gradle-plugins/com.fizzpod.github-release.properties'
}
groovy {
srcDir 'buildSrc/src/main/groovy'
}
}
test {
java {
srcDir 'buildSrc/src/test/java'
}
resources {
srcDir 'buildSrc/src/test/resources'
}
groovy {
srcDir 'buildSrc/src/test/groovy'
}
}
}
dependencies {
api gradleApi()
api localGroovy()
implementation 'com.squareup.okhttp3:okhttp:4.12.0'
implementation 'org.kohsuke:github-api:1.326'
implementation 'org.apache.tika:tika-core:3.0.0'
//########################################################
//overriding the provided versions of these libraries as
//they are not compatible with the dependency check plugin
implementation 'org.apache.commons:commons-lang3:3.17.0'
implementation 'org.apache.commons:commons-text:1.12.0'
//########################################################
}
/*
* The following configuration is specified in the gradle-plugin-opinion
githubRelease {
token project.hasProperty("github_release_token")? github_release_token: ""
repo scminfo.origin
tagName {'v' + project.version}
releaseName {}'Release ' + project.version}
generateReleaseNotes true
releaseAssets { ->
jar.outputs.files
}
}
*/
gradlePlugin {
plugins {
plugin {
description = 'Gradle plugin to create a Github release and upload artefacts.'
tags.set(['github', 'release', 'artefact'])
id = 'com.fizzpod.github-release'
displayName = 'Gradle Github Release Plugin'
implementationClass = 'com.fizzpod.gradle.plugins.githubrelease.GithubReleasePlugin'
}
}
}