File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
indra-common/src/main/java/net/kyori/indra/task Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 2828import java .util .Collection ;
2929import java .util .List ;
3030import javax .inject .Inject ;
31+ import net .kyori .indra .util .Versioning ;
3132import org .gradle .api .DefaultTask ;
3233import org .gradle .api .InvalidUserDataException ;
3334import org .gradle .api .JavaVersion ;
@@ -134,7 +135,7 @@ public void argumentProvider(final CommandLineArgumentProvider argumentProvider)
134135 */
135136 public JDeps () {
136137 this .getJavaLauncher ().convention (this .getToolchains ()
137- .launcherFor (spec -> spec .getLanguageVersion ().set (JavaLanguageVersion .of (JavaVersion .current (). toString ( )))));
138+ .launcherFor (spec -> spec .getLanguageVersion ().set (JavaLanguageVersion .of (Versioning . versionNumber ( JavaVersion .current ())))));
138139 this .getMultireleaseVersion ().finalizeValueOnRead ();
139140 }
140141
You can’t perform that action at this time.
0 commit comments