Skip to content

Commit

Permalink
fix scala 3 publishing.
Browse files Browse the repository at this point in the history
  • Loading branch information
SimY4 committed May 20, 2021
1 parent c290105 commit 397ce69
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions xpath-to-xml-scala/build-3.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,12 @@ dependencies {
testImplementation 'org.assertj:assertj-core'
}

jar {
from classesDir
}

def dottyCompilerOptions = [
'-project', project.name,
'-project-url', projectUrl,
'-project-version', project.version,
'-encoding', 'UTF-8',
'-release', '8',
'-deprecation',
'-explain', // Explain errors in more detail.
'-explain-types', // Explain type errors in more detail.
Expand All @@ -66,6 +63,11 @@ task compileScala(type: JavaExec) {
args dottyCompilerOptions + ['-d', classesDir] + sourceSets.main.allSource.filter { it.name.endsWith('.scala') }.files
}

jar {
dependsOn compileScala
from classesDir
}

task compileTestScala(type: JavaExec) {
dependsOn compileScala, compileTestJava
doFirst {
Expand Down Expand Up @@ -102,5 +104,5 @@ test {

javadocJar {
dependsOn scaladoc
from scaladoc
from scaladocDir
}

0 comments on commit 397ce69

Please sign in to comment.