forked from jk1/Gradle-License-Report
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
76 lines (66 loc) · 1.87 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
plugins {
id 'com.gradle.build-scan' version '2.2.1'
id 'idea'
id 'groovy'
id 'maven-publish'
id 'java-gradle-plugin'
id 'com.gradle.plugin-publish' version '0.10.1'
id "com.palantir.idea-test-fix" version "0.1.0"
id "com.github.hierynomus.license" version"0.15.0"
}
buildScan {
termsOfServiceUrl = 'https://gradle.com/terms-of-service'
termsOfServiceAgree = 'yes'
}
group = "com.github.jk1"
version = "1.8"
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile gradleApi()
compile localGroovy()
testCompile gradleTestKit()
testCompile("org.spockframework:spock-core:1.0-groovy-2.4") {
exclude group: 'org.codehaus.groovy'
}
}
idea {
module {
downloadSources = true
outputDir file("$buildDir/idea/main")
testOutputDir file("$buildDir/idea/test")
}
}
test {
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
pluginBundle {
website = 'https://github.com/jk1/Gradle-License-Report'
vcsUrl = 'https://github.com/jk1/Gradle-License-Report'
description = 'A plugin for generating reports about the licenses of the dependencies for your Gradle project'
tags = ['dependency-management', 'license', 'reporting']
plugins {
licenseReportPlugin {
id = 'com.github.jk1.dependency-license-report'
displayName = 'Gradle dependency license report plugin'
}
}
}