Project is now buildable.

-Moved: Code generation is in its own sourceset.
-Fixed: Bugs that caused that the project isnt buildable.
-Changed: Made build.gradle to a standard.
This commit is contained in:
2021-01-29 11:41:48 +01:00
parent 0cb07398f9
commit aaee550ea9
57 changed files with 132 additions and 86 deletions
+31 -6
View File
@@ -12,7 +12,7 @@ apply plugin: 'eclipse'
repositories {
jcenter()
flatDir {
dirs '/libs'
dirs 'libs'
}
}
@@ -31,11 +31,12 @@ eclipse {
}
}
task generateSource(type: JavaExec) {
group = 'internal'
description = 'Builds the sourcecode'
classpath = sourceSets.main.runtimeClasspath
main = 'speiger.src.builder.example.TestBuilder'
sourceSets {
builder
}
configurations {
builderCompile.extendsFrom compile
}
dependencies {
@@ -43,6 +44,30 @@ dependencies {
testImplementation 'junit:junit:4.12'
}
task generateSource(type: JavaExec) {
group = 'internal'
description = 'Builds the sourcecode'
classpath = sourceSets.builder.runtimeClasspath
main = 'speiger.src.builder.PrimitiveCollectionsBuilder'
}
task javadocJar(type: Jar) {
from javadoc
classifier = 'javadoc'
}
task srcJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
javadoc.failOnError = false
artifacts {
archives javadocJar
archives srcJar
}
test {
useJUnit()
}