|
1 | 1 | /*
|
2 |
| - * Copyright 2020 Kazimierz Pogoda |
| 2 | + * Copyright 2021 Kazimierz Pogoda |
3 | 3 | *
|
4 | 4 | * This file is part of shader-web-background.
|
5 | 5 | *
|
|
17 | 17 | * along with shader-web-background. If not, see <https://www.gnu.org/licenses/>.
|
18 | 18 | */
|
19 | 19 |
|
20 |
| -val closureCompilerVersion = "v20210106" |
| 20 | +val closureCompilerVersion = "v20211201" |
21 | 21 |
|
22 | 22 | plugins {
|
23 |
| - kotlin("jvm") version "1.4.21" |
| 23 | + kotlin("jvm") version "1.6.10" |
24 | 24 | }
|
25 | 25 |
|
26 | 26 | dependencies {
|
27 | 27 | implementation("com.google.javascript:closure-compiler:$closureCompilerVersion")
|
28 | 28 | }
|
29 | 29 |
|
30 | 30 | repositories {
|
31 |
| - jcenter() |
| 31 | + mavenCentral() |
32 | 32 | }
|
33 | 33 |
|
34 | 34 | fun getMapJsBackPath(path: String) =
|
@@ -73,16 +73,16 @@ fun updateEmbeddedLibs(
|
73 | 73 | }
|
74 | 74 | }
|
75 | 75 |
|
76 |
| -task("closureCompilerHelp", JavaExec::class) { |
| 76 | +task<JavaExec>("closureCompilerHelp") { |
77 | 77 | group = "js"
|
78 |
| - main = "com.google.javascript.jscomp.CommandLineRunner" |
| 78 | + mainClass.set("com.google.javascript.jscomp.CommandLineRunner") |
79 | 79 | args = listOf("--help")
|
80 | 80 | classpath = sourceSets["main"].runtimeClasspath
|
81 | 81 | }
|
82 | 82 |
|
83 |
| -task("compileJs", JavaExec::class) { |
| 83 | +task<JavaExec>("compileJs") { |
84 | 84 | group = "js"
|
85 |
| - main = "com.xemantic.web.shader.background.ShaderWebBackgroundClosureCompilerKt" |
| 85 | + mainClass.set("com.xemantic.web.shader.background.ShaderWebBackgroundClosureCompilerKt") |
86 | 86 |
|
87 | 87 | val sourceDir = "src/main/js"
|
88 | 88 | val outputDir = "dist"
|
@@ -114,7 +114,6 @@ task("compileJs", JavaExec::class) {
|
114 | 114 | "--jscomp_warning=reportUnknownTypes",
|
115 | 115 | "--jscomp_warning=strictCheckTypes",
|
116 | 116 | "--jscomp_warning=typeInvalidation",
|
117 |
| - "--jscomp_warning=undefinedNames", |
118 | 117 | "--jscomp_warning=unusedLocalVariables",
|
119 | 118 | "--jscomp_warning=unusedPrivateMembers",
|
120 | 119 | "--jscomp_warning=visibility",
|
|
0 commit comments