-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
50 lines (42 loc) · 1.08 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
group 'aspectj-gradle-nospring-starter'
version '1.0-SNAPSHOT'
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "gradle.plugin.aspectj:gradle-aspectj:0.1.6"
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.5'
distributionUrl = "https://services.gradle.org/distributions/gradle-$gradleVersion-all.zip"
}
ext {
aspectjVersion = '1.8.5'
}
apply plugin: 'java'
apply plugin: 'aspectj.gradle'
sourceCompatibility = 1.8
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
ext{
javaMainClass = "kanshu.aspectj.Runner"
}
task runWithJavaExec(type: JavaExec) {
group = "Execution"
description = "Run the main class with JavaExecTask"
classpath = sourceSets.main.runtimeClasspath
main = javaMainClass
}
dependencies {
compile "com.google.auto.service:auto-service:1.0-rc2"
compile group: 'org.aspectj', name: 'aspectjrt', version: '1.8.5'
compile group: 'org.aspectj', name: 'aspectjweaver', version: '1.8.5'
}