Skip to content

Commit

Permalink
Check for property key in project properties and update compiler version
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbsox committed Oct 19, 2023
1 parent fd7ef36 commit 3ee65c4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
18 changes: 9 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,26 +40,26 @@ configurations {
}

compileJava {
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

compileTestJava {
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

compileGroovy {
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

compileTestGroovy {
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

def libertyAntVersion = "1.9.13"
def libertyAntVersion = "1.9.14-SNAPSHOT"
def libertyCommonVersion = "1.8.30-SNAPSHOT"

dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,8 @@ public class AbstractFeatureTask extends AbstractServerTask {
protected void setContainerEngine(AbstractContainerSupportUtil util) throws PluginExecutionException {
String LIBERTY_DEV_PODMAN = "liberty.dev.podman";
Map<String, Object> projectProperties = project.getProperties();
if (!projectProperties.isEmpty()) {
if (!projectProperties.isEmpty() && projectProperties.containsKey(LIBERTY_DEV_PODMAN)) {
Object isPodman = projectProperties.get(LIBERTY_DEV_PODMAN);
isPodman = projectProperties.get(LIBERTY_DEV_PODMAN);
if (isPodman != null) {
util.setIsDocker(!(Boolean.parseBoolean(isPodman.toString())));
logger.debug("liberty.dev.podman was set to: " + (Boolean.parseBoolean(isPodman.toString())));
Expand Down

0 comments on commit 3ee65c4

Please sign in to comment.