-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.gradle
60 lines (48 loc) · 1.4 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
plugins {
id 'com.gradle.plugin-publish' version "0.21.0"
id 'java-gradle-plugin'
id 'maven-publish'
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
testImplementation group: 'junit', name: 'junit', version: '4.12'
implementation 'com.societegenerale.commons:arch-unit-build-plugin-core:4.0.0'
}
tasks.register('sourceJar', Jar) {
from sourceSets.main.allJava
archiveClassifier.set("sources")
}
tasks.register('javadocJar', Jar) {
dependsOn javadoc
from javadoc.destinationDir
archiveClassifier.set("javadoc")
}
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'
}
}
}