Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #2664 from Netflix/gradle_netflixoss_upgrade
Browse files Browse the repository at this point in the history
Build tools upgrade
  • Loading branch information
aravindanr authored Jan 31, 2022
2 parents c0513c0 + 3e15c77 commit ac678a1
Show file tree
Hide file tree
Showing 10 changed files with 203 additions and 119 deletions.
18 changes: 9 additions & 9 deletions annotations-processor/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@ sourceSets {

dependencies {
implementation project(':conductor-annotations')
compile 'com.google.guava:guava:25.1-jre'
compile 'com.squareup:javapoet:1.11.+'
compile 'com.github.jknack:handlebars:4.0.+'
compile 'com.google.protobuf:protobuf-java:3.5.1'
compile 'javax.annotation:javax.annotation-api:1.3.2'
compile gradleApi()
api 'com.google.guava:guava:25.1-jre'
api 'com.squareup:javapoet:1.11.+'
api 'com.github.jknack:handlebars:4.0.+'
api 'com.google.protobuf:protobuf-java:3.5.1'
api 'javax.annotation:javax.annotation-api:1.3.2'
api gradleApi()

exampleCompile sourceSets.main.output
exampleCompile project(':conductor-annotations')
exampleImplementation sourceSets.main.output
exampleImplementation project(':conductor-annotations')
}

task exampleJar(type: Jar) {
archiveFileName = 'example.jar'
from sourceSets.example.output.classesDirs
}

testClasses.finalizedBy(exampleJar)
testClasses.finalizedBy(exampleJar)
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ plugins {
id 'java'
id 'application'
id 'jacoco'
id 'nebula.netflixoss' version '9.2.2'
id 'nebula.netflixoss' version '10.4.0'
id 'org.sonarqube' version '3.1.1'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
*/
package com.netflix.conductor.service;

import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -48,13 +49,13 @@ public AdminServiceImpl(
QueueDAO queueDAO,
Optional<WorkflowRepairService> workflowRepairService,
Optional<EventQueueManager> eventQueueManager,
BuildProperties buildProperties) {
Optional<BuildProperties> buildProperties) {
this.properties = properties;
this.executionService = executionService;
this.queueDAO = queueDAO;
this.workflowRepairService = workflowRepairService.orElse(null);
this.eventQueueManager = eventQueueManager.orElse(null);
this.buildProperties = buildProperties;
this.buildProperties = buildProperties.orElse(null);
}

/**
Expand All @@ -74,6 +75,7 @@ public Map<String, Object> getAllConfig() {
* @return all the build properties.
*/
private Map<String, Object> getBuildProperties() {
if (buildProperties == null) return Collections.emptyMap();
Map<String, Object> buildProps = new HashMap<>();
buildProps.put("version", buildProperties.getVersion());
buildProps.put("buildDate", buildProperties.getTime());
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit ac678a1

Please sign in to comment.