Add included build to JAR
Instead of copying classes to the compile output, we now add them directly to the JAR. This allows JavaCompile to be cached, since there are no overlapping outputs anymore.
This commit is contained in:
		
							parent
							
								
									8b7f772761
								
							
						
					
					
						commit
						f7beb537f0
					
				| 
						 | 
					@ -34,12 +34,7 @@ dependencies {
 | 
				
			||||||
	testRuntime 'org.hsqldb:hsqldb'
 | 
						testRuntime 'org.hsqldb:hsqldb'
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
classes.doLast {
 | 
					tasks.jar.from { includeProject.sourceSets.main.output }
 | 
				
			||||||
	copy {
 | 
					 | 
				
			||||||
		from includeProject.sourceSets.main.output
 | 
					 | 
				
			||||||
		into sourceSets.main.java.outputDir
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
tasks.sourcesJar.from {includeProject.sourceSets.main.java}
 | 
					tasks.sourcesJar.from {includeProject.sourceSets.main.java}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue