forked from gradle/gradle
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow scala version to be explicitly declared (gradle#31118)
- Loading branch information
Showing
40 changed files
with
564 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 6 additions & 3 deletions
9
platforms/documentation/docs/src/snippets/scala/compilerPlugin/groovy/build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
plugins { | ||
id 'scala' | ||
id("scala") | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
scala { | ||
scalaVersion = "2.13.12" | ||
} | ||
|
||
// tag::compiler-plugin[] | ||
dependencies { | ||
implementation "org.scala-lang:scala-library:2.13.12" | ||
scalaCompilerPlugins "org.typelevel:kind-projector_2.13.12:0.13.2" | ||
scalaCompilerPlugins("org.typelevel:kind-projector_2.13.12:0.13.2") | ||
} | ||
// end::compiler-plugin[] |
7 changes: 5 additions & 2 deletions
7
platforms/documentation/docs/src/snippets/scala/compilerPlugin/kotlin/build.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
plugins { | ||
scala | ||
id("scala") | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
scala { | ||
scalaVersion = "2.13.12" | ||
} | ||
|
||
// tag::compiler-plugin[] | ||
dependencies { | ||
implementation("org.scala-lang:scala-library:2.13.12") | ||
scalaCompilerPlugins("org.typelevel:kind-projector_2.13.12:0.13.2") | ||
} | ||
// end::compiler-plugin[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
platforms/documentation/docs/src/snippets/scala/force/groovy/build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
platforms/documentation/docs/src/snippets/scala/force/kotlin/build.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
platforms/documentation/docs/src/snippets/scala/ideaTargetVersion/groovy/build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
plugins { | ||
id 'scala' | ||
id 'idea' | ||
id("scala") | ||
id("idea") | ||
} | ||
|
||
// tag::scala-idea-target-version[] | ||
|
4 changes: 2 additions & 2 deletions
4
platforms/documentation/docs/src/snippets/scala/ideaTargetVersion/kotlin/build.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
plugins { | ||
scala | ||
idea | ||
id("scala") | ||
id("idea") | ||
} | ||
|
||
// tag::scala-idea-target-version[] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
platforms/documentation/docs/src/snippets/scala/quickstart/groovy/build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
// tag::use-plugin[] | ||
plugins { | ||
// end::use-plugin[] | ||
id 'eclipse' | ||
id("eclipse") | ||
// tag::use-plugin[] | ||
id 'scala' | ||
id("scala") | ||
} | ||
// end::use-plugin[] | ||
|
||
// tag::scala-dependency[] | ||
// tag::scala-version[] | ||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation 'org.scala-lang:scala-library:2.13.12' | ||
testImplementation 'junit:junit:4.13' | ||
scala { | ||
scalaVersion = "2.13.12" | ||
} | ||
// end::scala-dependency[] | ||
// end::scala-version[] | ||
|
||
dependencies { | ||
implementation 'commons-collections:commons-collections:3.2.2' | ||
testImplementation 'junit:junit:4.13' | ||
} |
13 changes: 13 additions & 0 deletions
13
...rms/documentation/docs/src/snippets/scala/quickstart/groovy/inferred-version/build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
plugins { | ||
id("scala") | ||
} | ||
|
||
// tag::scala-dependency[] | ||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation("org.scala-lang:scala-library:2.13.12") | ||
} | ||
// end::scala-dependency[] |
2 changes: 2 additions & 0 deletions
2
platforms/documentation/docs/src/snippets/scala/quickstart/groovy/settings.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
rootProject.name = 'quickstart' | ||
|
||
include("inferred-version") |
14 changes: 7 additions & 7 deletions
14
platforms/documentation/docs/src/snippets/scala/quickstart/kotlin/build.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
// tag::use-plugin[] | ||
plugins { | ||
// end::use-plugin[] | ||
eclipse | ||
id("eclipse") | ||
// tag::use-plugin[] | ||
scala | ||
id("scala") | ||
} | ||
// end::use-plugin[] | ||
|
||
// tag::scala-dependency[] | ||
// tag::scala-version[] | ||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation("org.scala-lang:scala-library:2.13.12") | ||
testImplementation("junit:junit:4.13") | ||
scala { | ||
scalaVersion = "2.13.12" | ||
} | ||
// end::scala-dependency[] | ||
// end::scala-version[] | ||
|
||
dependencies { | ||
implementation("commons-collections:commons-collections:3.2.2") | ||
testImplementation("junit:junit:4.13") | ||
} |
13 changes: 13 additions & 0 deletions
13
...documentation/docs/src/snippets/scala/quickstart/kotlin/inferred-version/build.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
plugins { | ||
id("scala") | ||
} | ||
|
||
// tag::scala-dependency[] | ||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation("org.scala-lang:scala-library:2.13.12") | ||
} | ||
// end::scala-dependency[] |
2 changes: 2 additions & 0 deletions
2
platforms/documentation/docs/src/snippets/scala/quickstart/kotlin/settings.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
rootProject.name = "quickstart" | ||
|
||
include("inferred-version") |
10 changes: 7 additions & 3 deletions
10
platforms/documentation/docs/src/snippets/scala/scala3/groovy/build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.