forked from jk1/Gradle-License-Report
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
67 lines (57 loc) · 1.56 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
plugins{
id 'java'
id 'groovy'
id 'maven-publish'
id 'com.gradle.plugin-publish' version '0.9.7'
}
group = "com.github.jk1"
version = "0.4.1"
sourceCompatibility = 1.6
targetCompatibility = 1.6
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
compile gradleApi()
compile localGroovy()
testCompile("org.spockframework:spock-core:1.0-groovy-2.4") {
exclude group: 'org.codehaus.groovy'
}
}
task('sourcesJar', type: Jar, dependsOn: classes) {
classifier = 'sources'
sourceSets.each { SourceSet ss ->
from ss.allSource
}
}
task('javadocJar', type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar, javadocJar
}
// local maven publishing to ease development
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar { classifier "sources" }
artifact javadocJar { classifier "javadoc" }
}
}
}
// 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'
}
}
}