Questions tagged [gradle-scala]

Use on topics covering the use of Gradle to build Scala projects.

6 questions
6
votes
1 answer

Is there a way to use the Scala 3 compiler (Dotty) from Gradle yet?

I am new to both Gradle and Dotty (and still relatively new to Scala overall). I was able to create a Scala project with Gradle like this: gradle init --dsl kotlin --type scala-library --package com.stackoverflow.example and I know that Dotty can…
Keith Pinson
  • 7,835
  • 7
  • 61
  • 104
4
votes
2 answers

Running Scala test with gradle scala plugin

Using the latest version of gradle (2.10) with the Scala Plugin enabled, I'm trying to execute the tests located at src/test/scala. But there seems to be no tasks to run these: $ ./gradlew tasks .... Verification tasks ------------------ check -…
mana
  • 6,347
  • 6
  • 50
  • 70
2
votes
1 answer

Is there a way to make Gradle Scala Plugin work correctly?

The problem > Task :compileScala FAILED 'jvm-1.11' is not a valid choice for '-target' bad option: '-target:jvm-1.11' After struggling for hours, I have no ideas left on how to resolve this. % ./gradlew…
Eric Kolotyluk
  • 1,958
  • 2
  • 21
  • 30
1
vote
0 answers

couldn't use scala classes in java coding in scala-java polyglot gradle project using kotlin dsl

I have scala/java polyglot project [gradle-scala-java-polyglot-project]1 build using gradle kotlin dsl. Below is the project structure ± tree . ├── build.gradle.kts ├── gradle │   └── wrapper │   ├── gradle-wrapper.jar │   └──…
user51
  • 8,843
  • 21
  • 79
  • 158
1
vote
0 answers

Gradle build task for Scala Library does not include library code in jar

Result of gradle build Project Structure Here is my build.gradle plugins { id 'scala' id 'org.gradle.playframework' version '0.9' id "org.openapi.generator" version "5.0.0-beta" id 'maven-publish' id 'java-base' id…
asds_asds
  • 990
  • 1
  • 10
  • 19
0
votes
0 answers

How to add java compiler "release" flag to scala project using gradle

I have a scala based project built with gradle, it contains java and scala code. We are upgrading to OpenJDK11 from oracle jdk 8. We are upgrading with binaries compatible with JDK8 by adding release flag to compiler. I achieved that for java files…
Annapoorni D
  • 831
  • 2
  • 13
  • 30