Skip to content

Commit 17b31ee

Browse files
committed
Fix gradle enableFeaturePreview deprecation warning
1 parent 7faf27a commit 17b31ee

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

settings.gradle

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44

55
rootProject.name = 'java-oca-ocpp'
66

7-
enableFeaturePreview('STABLE_PUBLISHING')
7+
import org.gradle.util.GradleVersion
8+
9+
if (GradleVersion.current() < GradleVersion.version("5.0")) {
10+
enableFeaturePreview('STABLE_PUBLISHING')
11+
}
812

913
include(':ocpp16')
1014
include(':ocpp16j')

0 commit comments

Comments
 (0)