-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
98 lines (80 loc) · 2.7 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
plugins {
id 'java-gradle-plugin'
id 'groovy'
id "com.gradle.plugin-publish" version "0.10.0"
id "com.github.hierynomus.license" version "0.14.0"
}
group = 'org.moditect'
version = '1.0.0-SNAPSHOT'
repositories {
mavenCentral()
jcenter()
gradlePluginPortal()
flatDir {
dirs "${rootProject.projectDir}/lib"
}
}
sourceCompatibility = 1.8
def defaultEncoding = 'UTF-8'
[compileJava, compileTestJava]*.options*.encoding = defaultEncoding
[compileGroovy, compileTestGroovy]*.options*.encoding = defaultEncoding
[compileGroovy, compileTestGroovy]*.groovyOptions*.encoding = defaultEncoding
sourceSets.main.java.srcDirs = []
sourceSets.main.groovy.srcDirs = ["src/main/java", "src/main/groovy"]
configurations {
compile {transitive = true}
}
ext {
aetherVersion = '1.1.0'
}
dependencies {
implementation gradleTestKit()
implementation localGroovy()
implementation "gradle.plugin.com.google.gradle:osdetector-gradle-plugin:1.6.1"
// TODO - use the artifact from Maven Central when it becomes available
implementation 'com.github.moditect:moditect:1.0.0.Local'
implementation 'com.github.javaparser:javaparser-core:3.5.0'
// implementation 'com.github.moditect:moditect:1.0.0'
implementation 'org.apache.maven:maven-aether-provider:3.3.9'
implementation "org.eclipse.aether:aether-connector-basic:$aetherVersion"
implementation "org.eclipse.aether:aether-transport-file:$aetherVersion"
implementation "org.eclipse.aether:aether-transport-http:$aetherVersion"
testImplementation('org.spockframework:spock-core:1.1-groovy-2.4') {
exclude module: 'groovy-all'
}
testImplementation 'cglib:cglib-nodep:3.2.10'
testImplementation 'org.objenesis:objenesis:3.0.1'
testImplementation('com.athaydes:spock-reports:1.6.1') { transitive = false}
}
gradlePlugin {
plugins {
moditect {
id = 'org.moditect.gradleplugin'
implementationClass = 'org.moditect.gradleplugin.ModitectPlugin'
}
}
}
pluginBundle {
website = 'https://github.com/moditect/moditect-gradle-plugin/'
vcsUrl = 'https://github.com/moditect/moditect-gradle-plugin'
description = 'A Gradle plugin for ModiTect'
tags = ['moditect', 'java9', 'modules', 'jigsaw']
plugins {
moditect {
id = 'org.moditect.gradleplugin'
displayName = 'ModiTect Gradle Plugin'
}
}
}
jar {
manifest {
attributes 'Implementation-Title': "${project.archivesBaseName}",
'Implementation-Version': archiveVersion
}
}
license {
header rootProject.file("license-header.txt")
skipExistingHeaders true
ignoreFailures false
excludes(['**/*.properties'])
}