-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
129 lines (112 loc) · 3.68 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
buildscript {
repositories {
mavenLocal()
maven {
url 'https://plugins.gradle.org/m2/'
}
}
dependencies {
classpath "com.gradle.publish:plugin-publish-plugin:0.21.0"
}
}
apply plugin: 'groovy'
apply plugin: 'java-gradle-plugin'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'project-report'
apply plugin: 'build-dashboard'
apply plugin: 'maven-publish'
apply plugin: 'signing'
apply plugin: 'com.gradle.plugin-publish'
ext {
pluginVersion = '0.1.1-SNAPSHOT'
spockCoreVersion = '1.1-groovy-2.4'
groovyYamlVersion = '3.0.10'
groovyJsonVersion = '3.0.10'
groovyWsLiteVersion = '1.1.3'
commonsLang3Version = '3.12.0'
jacksonVersion = '2.13.2.2'
}
group 'io.dotinc'
version "${pluginVersion}"
repositories {
mavenLocal()
mavenCentral()
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
withJavadocJar()
withSourcesJar()
}
javadoc {
if(JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}
dependencies {
implementation(
localGroovy(),
gradleApi(),
"org.codehaus.groovy:groovy-yaml:$groovyYamlVersion",
"com.github.groovy-wslite:groovy-wslite:$groovyWsLiteVersion",
"org.apache.commons:commons-lang3:$commonsLang3Version",
"com.fasterxml.jackson.core:jackson-databind:$jacksonVersion",
"org.codehaus.groovy:groovy-json:$groovyJsonVersion"
)
testImplementation gradleTestKit()
testImplementation("org.spockframework:spock-core:$spockCoreVersion") {
exclude module: 'groovy-all'
}
}
publishing {
publications {
pluginPublication (MavenPublication) {
groupId "$group"
artifactId 'gitleaks-gradle'
version "$version"
from components.java
pom {
name = 'gitleaks-gradle'
description = 'GitLeaks gradle plugin is an ' +
'analysis tool based on https://github.com/zricethezav/gitleaks used to find secrets pushed into the SCM repository.'
url = 'https://github.com/bulivlad/gitleaks-gradle'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'https://github.com/bulivlad/gitleaks-gradle/blob/master/LICENSE'
}
}
developers {
developer {
id = 'bulivlad'
name = 'Vlad Bulimac'
email = '[email protected]'
}
}
scm {
url = 'https://github.com/bulivlad/gitleaks-gradle'
connection = 'scm:git:https://github.com/bulivlad/gitleaks-gradle.git'
developerConnection = 'scm:git:https://github.com/bulivlad/gitleaks-gradle.git'
}
}
}
}
}
signing {
sign publishing.publications.pluginPublication
}
pluginBundle {
website = 'https://github.com/bulivlad/gitleaks-gradle#readme'
vcsUrl = 'https://github.com/bulivlad/gitleaks-gradle'
tags = ['git-leaks', 'gitleaks', 'gradle-plugin', 'leaks-detection', 'security']
plugins {
gitLeaks {
id = 'io.dotinc.gitleaks'
displayName = 'gitleaks-gradle plugin'
description = 'GitLeaks gradle plugin is an analysis tool based on https://github.com/zricethezav/gitleaks used to find secrets pushed into the SCM repository.'
}
}
}
publish.dependsOn publishPlugins
defaultTasks 'build'