Cleanup version determination in CustomRuntimeEventLoop
This commit is contained in:
@@ -236,6 +236,12 @@ public final class CustomRuntimeEventLoop implements SmartLifecycle {
|
|||||||
return "UNKNOWN-VERSION";
|
return "UNKNOWN-VERSION";
|
||||||
}
|
}
|
||||||
int startIndex = path.lastIndexOf("/") + 1;
|
int startIndex = path.lastIndexOf("/") + 1;
|
||||||
return path.substring(startIndex, endIndex).replace("spring-cloud-function-adapter-aws-", "");
|
try {
|
||||||
|
return path.substring(startIndex, endIndex).replace("spring-cloud-function-adapter-aws-", "");
|
||||||
|
}
|
||||||
|
catch (Throwable e) {
|
||||||
|
logger.info("Failed to deterimine framework version");
|
||||||
|
return "UNKNOWN-VERSION";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-function-kotlin</artifactId>
|
<artifactId>spring-cloud-function-kotlin</artifactId>
|
||||||
<version>3.2.1-SNAPSHOT</version>
|
<version>3.2.2-SNAPSHOT</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
|
|||||||
Reference in New Issue
Block a user