forked from semestry/gradle-aspectj
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
62 lines (53 loc) · 1.5 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
plugins {
id 'groovy'
id 'java-gradle-plugin'
id 'com.gradle.plugin-publish' version '0.9.10'
}
group = "$artifact_group"
version = "$artifact_version.$build_number"
sourceCompatibility=JavaVersion.VERSION_1_8
targetCompatibility=JavaVersion.VERSION_1_8
// https://blogs.oracle.com/darcy/new-javac-warning-for-setting-an-older-source-without-bootclasspath
tasks.withType(JavaCompile) {
options.forkOptions.jvmArgs.withDefault {
"bootclasspath: ${System.properties.'java.home'}/lib/rt.jar"
}
}
repositories {
jcenter()
mavenCentral()
}
dependencies {
compile localGroovy()
testCompile 'junit:junit:4.12'
}
gradlePlugin {
plugins {
'aspectj-gradle' {
id = "$artifact_group"
implementationClass = 'com.github.smac89.aspectj.AspectJPlugin'
}
}
}
pluginBundle {
website = 'https://github.com/smac89/aspectj-gradle'
vcsUrl = 'https://github.com/smac89/aspectj-gradle.git'
plugins {
'aspectj-gradle' {
id = "$artifact_group"
displayName = 'Gradle AspectJ Plugin'
description = "Gradle plugin for creating tasks for compiling aspects with aspectJ"
version = project.version
tags = ['aop', 'aspectj', 'weaving']
}
}
}
test {
testLogging {
showStandardStreams = true
exceptionFormat = 'full'
}
onOutput { descriptor, event ->
logger.lifecycle("Test: $descriptor produced standard out/err: ${event.message}")
}
}