forked from jk1/Gradle-License-Report
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
69 lines (60 loc) · 1.8 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
plugins {
id 'idea'
id 'groovy'
id 'com.gradle.plugin-publish' version '1.2.0'
id 'com.github.hierynomus.license' version '0.16.1'
}
group = 'com.github.jk1'
version = '2.5'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
repositories {
mavenCentral()
}
dependencies {
implementation gradleApi()
implementation localGroovy()
testImplementation gradleTestKit()
testImplementation('org.spockframework:spock-core:2.1-groovy-3.0') {
exclude group: 'org.codehaus.groovy'
}
}
idea {
module {
downloadSources = true
outputDir file("$buildDir/idea/main")
testOutputDir file("$buildDir/idea/test")
}
}
test {
useJUnitPlatform()
testLogging {
showStandardStreams = true
exceptionFormat = 'full'
}
outputs.upToDateWhen { false }
}
// local maven publishing to ease development
publishing {
publications {
mavenJava(MavenPublication) {
groupId 'com.github.jk1.dependency-license-report'
artifactId 'com.github.jk1.dependency-license-report.gradle.plugin'
from components.java
}
}
}
// release publishing to gradle plugin repo
gradlePlugin {
website = 'https://github.com/jk1/Gradle-License-Report'
vcsUrl = 'https://github.com/jk1/Gradle-License-Report'
plugins {
licenseReportPlugin {
id = 'com.github.jk1.dependency-license-report'
displayName = 'Gradle dependency license report plugin'
description = 'A plugin for generating reports about the licenses of the dependencies for your Gradle project'
tags.set(['dependency-management', 'license', 'reporting'])
implementationClass = 'com.github.jk1.license.LicenseReportPlugin'
}
}
}