Skip to content

Commit 70d67b7

Browse files
authored
Handle version 2.0 API as required by GoCD 23.3.0 (#8)
1 parent c05e9a8 commit 70d67b7

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ out/
1313
!gradle-wrapper.jar
1414

1515
classes/
16+
17+
# osx junk
18+
.DS_Store

build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ apply plugin: 'java'
1818

1919
apply from: 'plugin-common.gradle'
2020

21-
project.ext.pluginVersion = '1.1.0'
21+
project.ext.pluginVersion = '1.2.0'
2222
project.ext.fullVersion = project.distVersion ? "${project.pluginVersion}-${project.distVersion}" : project.pluginVersion
2323

2424
version = project.fullVersion
@@ -27,7 +27,7 @@ group = 'cd.go'
2727
project.ext.pluginDesc = [
2828
id : 'cd.go.authorization.okta',
2929
version : project.fullVersion,
30-
goCdVersion: '17.5.0',
30+
goCdVersion: '19.2.0',
3131
name : 'Okta oauth authorization plugin',
3232
description: 'Okta oauth authorization plugin for GoCD',
3333
vendorName : 'szamfirov',
@@ -40,11 +40,11 @@ repositories {
4040
}
4141

4242
dependencies {
43-
compileOnly group: 'cd.go.plugin', name: 'go-plugin-api', version: '17.5.0'
44-
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.1'
43+
compileOnly group: 'cd.go.plugin', name: 'go-plugin-api', version: '23.3.0'
44+
compile group: 'com.google.code.gson', name: 'gson', version: '2.10.1'
4545
compile group: 'com.squareup.okhttp3', name: 'okhttp', version: '3.8.1'
4646

47-
testCompile group: 'cd.go.plugin', name: 'go-plugin-api', version: '17.5.0'
47+
testCompile group: 'cd.go.plugin', name: 'go-plugin-api', version: '23.3.0'
4848
testCompile group: 'junit', name: 'junit', version: '4.12'
4949
testCompile group: 'org.mockito', name: 'mockito-core', version: '2.2.28'
5050
testCompile group: 'org.hamcrest', name: 'hamcrest-library', version: '1.3'

src/main/java/cd/go/authorization/okta/Constants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public interface Constants {
2525
String EXTENSION_TYPE = "authorization";
2626

2727
// The extension point API version that this plugin understands
28-
String API_VERSION = "1.0";
28+
String API_VERSION = "2.0";
2929

3030
// the identifier of this plugin
3131
GoPluginIdentifier PLUGIN_IDENTIFIER = new GoPluginIdentifier(EXTENSION_TYPE, Collections.singletonList(API_VERSION));

0 commit comments

Comments
 (0)