File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
src/main/java/com/diffplug/webtools/jte Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ repositories {
1717 gradlePluginPortal()
1818}
1919dependencies {
20+ // reflection for version decoupling
21+ implementation ' org.jooq:joor:0.9.15'
2022 // node.js
2123 api ' com.github.eirslett:frontend-maven-plugin:1.15.1'
2224 implementation ' com.diffplug.durian:durian-swt.os:5.0.1'
Original file line number Diff line number Diff line change 1515 */
1616package com .diffplug .webtools .jte ;
1717
18+ import static org .joor .Reflect .onClass ;
19+
1820import gg .jte .ContentType ;
1921import gg .jte .TemplateConfig ;
2022import gg .jte .compiler .TemplateParser ;
2123import gg .jte .compiler .TemplateParserVisitorAdapter ;
2224import gg .jte .compiler .TemplateType ;
23- import gg .jte .gradle .JteExtension ;
24- import gg .jte .gradle .JteGradle ;
2525import java .io .File ;
2626import java .io .IOException ;
2727import java .nio .charset .StandardCharsets ;
4949public class JtePlugin implements Plugin <Project > {
5050 @ Override
5151 public void apply (Project project ) {
52- project .getPlugins ().apply (JteGradle . class );
52+ project .getPlugins ().apply ("gg.jte.gradle" );
5353 project .getPlugins ().apply ("org.jetbrains.kotlin.jvm" );
54- var extension = project .getExtensions ().getByType (JteExtension .class );
55- extension .getBinaryStaticContent ().set (true );
56- extension .precompile ();
54+ gg .jte .gradle .JteExtension extension = (gg .jte .gradle .JteExtension ) project .getExtensions ().getByType (onClass ("gg.jte.gradle.JteExtension" ).type ());
5755
5856 JavaPluginExtension javaPluginExtension = project .getExtensions ().getByType (JavaPluginExtension .class );
5957 SourceSet main = javaPluginExtension .getSourceSets ().findByName ("main" );
You can’t perform that action at this time.
0 commit comments