forked from societe-generale/arch-unit-gradle-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
59 lines (48 loc) · 1.38 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
plugins {
id 'com.gradle.plugin-publish' version "0.21.0"
id 'java-gradle-plugin'
id 'maven-publish'
}
sourceCompatibility = 11
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
testImplementation group: 'junit', name: 'junit', version: '4.12'
implementation 'com.societegenerale.commons:arch-unit-build-plugin-core:3.0.0'
}
task sourceJar(type: Jar) {
classifier "sources"
from sourceSets.main.allJava
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier "javadoc"
from javadoc.destinationDir
}
javadoc.options.addStringOption('Xdoclint:none', '-quiet')
artifacts {
archives jar
archives sourceJar
archives javadocJar
}
gradlePlugin {
plugins {
archUnitGradlePlugin {
id = 'com.societegenerale.commons.arch-unit-gradle-plugin'
implementationClass = 'com.societegenerale.commons.plugin.gradle.ArchUnitGradlePlugin'
}
}
}
pluginBundle {
website = 'https://github.com/societe-generale/arch-unit-gradle-plugin'
vcsUrl = 'https://github.com/societe-generale/arch-unit-gradle-plugin'
description = 'A Gradle plugin to run packaged ArchUnit rules'
tags = ['archUnit']
plugins {
archUnitGradlePlugin {
// id is captured from java-gradle-plugin configuration
displayName = 'A Gradle plugin to run packaged ArchUnit rules'
}
}
}