1
- // redefine the compileJava and compileTestJava tasks in order to
2
- // compile sources with ajc instead of javac
1
+ // Redefine the compileJava and compileTestJava tasks in order to compile sources with ajc instead of javac
3
2
4
3
configurations {
5
4
rt
@@ -8,22 +7,14 @@ configurations {
8
7
ajInpath
9
8
}
10
9
11
- // exclude spring-aspects as a module within IDEA until IDEA-64446 is resolved
12
- tasks. getByName(" idea" ). onlyIf { false }
13
- tasks. getByName(" ideaModule" ). onlyIf { false }
14
-
15
10
compileJava {
16
11
actions = []
17
12
dependsOn configurations. ajc. getTaskDependencyFromProjectDependency(true , " compileJava" )
18
13
19
14
def outputDir = project. sourceSets. main. output. classesDir
20
-
21
15
inputs. files(project. sourceSets. main. allSource + project. sourceSets. main. compileClasspath)
22
16
outputs. dir outputDir
23
17
24
- ext. sourceCompatibility = project(" :spring-core" ). compileJava. sourceCompatibility
25
- ext. targetCompatibility = project(" :spring-core" ). compileJava. targetCompatibility
26
-
27
18
doLast{
28
19
// Assemble runtime classpath from folders and JARs that actually exist
29
20
def runtimeClasspath = project. files(sourceSets. main. runtimeClasspath. files. findAll({ it. exists() }))
@@ -53,13 +44,9 @@ compileTestJava {
53
44
dependsOn jar
54
45
55
46
def outputDir = project. sourceSets. test. output. classesDir
56
-
57
47
inputs. files(project. sourceSets. test. allSource + project. sourceSets. test. compileClasspath)
58
48
outputs. dir outputDir
59
49
60
- ext. sourceCompatibility = project(" :spring-core" ). compileTestJava. sourceCompatibility
61
- ext. targetCompatibility = project(" :spring-core" ). compileTestJava. targetCompatibility
62
-
63
50
doLast{
64
51
// Assemble runtime classpath from folders and JARs that actually exist
65
52
def runtimeClasspath = project. files(sourceSets. test. runtimeClasspath. files. findAll({ it. exists() }))
0 commit comments