-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25346 from glefloch/fix/2811
Allow setting kotlinc compiler arguments in dev task/mojo
- Loading branch information
Showing
22 changed files
with
324 additions
and
48 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
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
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
28 changes: 28 additions & 0 deletions
28
.../gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/dsl/CompilerOption.java
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,28 @@ | ||
package io.quarkus.gradle.dsl; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class CompilerOption { | ||
|
||
private final String name; | ||
private final List<String> opts = new ArrayList<>(0); | ||
|
||
public CompilerOption(String name) { | ||
this.name = name; | ||
} | ||
|
||
public CompilerOption args(List<String> options) { | ||
opts.addAll(options); | ||
return this; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public List<String> getArgs() { | ||
return opts; | ||
} | ||
|
||
} |
20 changes: 20 additions & 0 deletions
20
...gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/dsl/CompilerOptions.java
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,20 @@ | ||
package io.quarkus.gradle.dsl; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class CompilerOptions { | ||
|
||
private final List<CompilerOption> compilerOptions = new ArrayList<>(1); | ||
|
||
public CompilerOption compiler(String name) { | ||
CompilerOption compilerOption = new CompilerOption(name); | ||
compilerOptions.add(compilerOption); | ||
return compilerOption; | ||
} | ||
|
||
public List<CompilerOption> getCompilerOptions() { | ||
return compilerOptions; | ||
} | ||
|
||
} |
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
27 changes: 27 additions & 0 deletions
27
devtools/maven/src/main/java/io/quarkus/maven/components/CompilerOptions.java
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,27 @@ | ||
package io.quarkus.maven.components; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class CompilerOptions { | ||
|
||
private String name = null; | ||
private List<String> args = new ArrayList<>(); | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setArgs(List<String> options) { | ||
this.args = options; | ||
} | ||
|
||
public List<String> getArgs() { | ||
return args; | ||
} | ||
|
||
} |
Oops, something went wrong.