File tree Expand file tree Collapse file tree 12 files changed +40
-283
lines changed
src/main/kotlin/no/nav/security/token/support/client/spring/oauth2
token-validation-ktor-demo
src/main/kotlin/no/nav/security/token/support/spring/validation/interceptor
token-validation-spring-demo Expand file tree Collapse file tree 12 files changed +40
-283
lines changed Original file line number Diff line number Diff line change 83
83
<artifactId >maven-surefire-plugin</artifactId >
84
84
<version >3.1.2</version >
85
85
</plugin >
86
- <plugin >
87
- <groupId >org.jetbrains.kotlin</groupId >
88
- <artifactId >kotlin-maven-plugin</artifactId >
89
- <version >${kotlin.version} </version >
90
- <executions >
91
- <execution >
92
- <id >compile</id >
93
- <phase >compile</phase >
94
- <goals >
95
- <goal >compile</goal >
96
- </goals >
97
- </execution >
98
- <execution >
99
- <id >test-compile</id >
100
- <phase >test-compile</phase >
101
- <goals >
102
- <goal >test-compile</goal >
103
- </goals >
104
- </execution >
105
- </executions >
106
- <configuration >
107
- <jvmTarget >17</jvmTarget >
108
- </configuration >
109
- </plugin >
110
-
111
86
<plugin >
112
87
<groupId >org.jacoco</groupId >
113
88
<artifactId >jacoco-maven-plugin</artifactId >
129
104
</plugins >
130
105
<pluginManagement >
131
106
<plugins >
107
+ <plugin >
108
+ <groupId >org.jetbrains.kotlin</groupId >
109
+ <artifactId >kotlin-maven-plugin</artifactId >
110
+ <executions >
111
+ <execution >
112
+ <id >compile</id >
113
+ <phase >compile</phase >
114
+ <goals >
115
+ <goal >compile</goal >
116
+ </goals >
117
+ </execution >
118
+ <execution >
119
+ <id >test-compile</id >
120
+ <phase >test-compile</phase >
121
+ <goals >
122
+ <goal >test-compile</goal >
123
+ </goals >
124
+ </execution >
125
+ </executions >
126
+ <configuration >
127
+ <args >
128
+ <arg >-Xjsr305=strict</arg >
129
+ </args >
130
+ <compilerPlugins >
131
+ <plugin >all-open</plugin >
132
+ <plugin >spring</plugin >
133
+ </compilerPlugins >
134
+ <jvmTarget >${maven.compiler.target} </jvmTarget >
135
+ </configuration >
136
+ <dependencies >
137
+ <dependency >
138
+ <groupId >org.jetbrains.kotlin</groupId >
139
+ <artifactId >kotlin-maven-allopen</artifactId >
140
+ <version >${kotlin.version} </version >
141
+ </dependency >
142
+ </dependencies >
143
+ </plugin >
132
144
<plugin >
133
145
<groupId >org.apache.maven.plugins</groupId >
134
146
<artifactId >maven-source-plugin</artifactId >
Original file line number Diff line number Diff line change 94
94
<plugin >
95
95
<groupId >org.jetbrains.kotlin</groupId >
96
96
<artifactId >kotlin-maven-plugin</artifactId >
97
- <version >${kotlin.version} </version >
98
- <executions >
99
- <execution >
100
- <id >compile</id >
101
- <goals >
102
- <goal >compile</goal >
103
- </goals >
104
- </execution >
105
- <execution >
106
- <id >test-compile</id >
107
- <goals >
108
- <goal >test-compile</goal >
109
- </goals >
110
- <configuration >
111
- <sourceDirs >
112
- <sourceDir >${project.basedir} /src/test/kotlin</sourceDir >
113
- </sourceDirs >
114
- </configuration >
115
- </execution >
116
- </executions >
117
97
</plugin >
118
98
<plugin >
119
99
<groupId >org.apache.maven.plugins</groupId >
Original file line number Diff line number Diff line change 54
54
<plugin >
55
55
<groupId >org.springframework.boot</groupId >
56
56
<artifactId >spring-boot-maven-plugin</artifactId >
57
- <version >${spring-boot.version} </version >
58
57
</plugin >
59
58
<plugin >
60
59
<groupId >org.apache.maven.plugins</groupId >
Original file line number Diff line number Diff line change 99
99
<plugin >
100
100
<groupId >org.jetbrains.kotlin</groupId >
101
101
<artifactId >kotlin-maven-plugin</artifactId >
102
- <version >${kotlin.version} </version >
103
- <executions >
104
- <execution >
105
- <id >compile</id >
106
- <phase >compile</phase >
107
- <goals >
108
- <goal >compile</goal >
109
- </goals >
110
- </execution >
111
- <execution >
112
- <id >test-compile</id >
113
- <phase >test-compile</phase >
114
- <goals >
115
- <goal >test-compile</goal >
116
- </goals >
117
- </execution >
118
- </executions >
119
- <configuration >
120
- <args >
121
- <arg >-Xjsr305=strict</arg >
122
- </args >
123
- <compilerPlugins >
124
- <plugin >spring</plugin >
125
- </compilerPlugins >
126
- <jvmTarget >${java.version} </jvmTarget >
127
- </configuration >
128
- <dependencies >
129
- <dependency >
130
- <groupId >org.jetbrains.kotlin</groupId >
131
- <artifactId >kotlin-maven-allopen</artifactId >
132
- <version >${kotlin.version} </version >
133
- </dependency >
134
- </dependencies >
135
102
</plugin >
136
103
<plugin >
137
104
<groupId >org.apache.maven.plugins</groupId >
Original file line number Diff line number Diff line change @@ -11,8 +11,7 @@ import org.springframework.http.RequestEntity
11
11
import org.springframework.util.LinkedMultiValueMap
12
12
import org.springframework.web.client.HttpStatusCodeException
13
13
import org.springframework.web.client.RestOperations
14
-
15
- open class DefaultOAuth2HttpClient (val restOperations : RestOperations ) : OAuth2HttpClient {
14
+ class DefaultOAuth2HttpClient (val restOperations : RestOperations ) : OAuth2HttpClient {
16
15
constructor (builder: RestTemplateBuilder ) : this (builder.build())
17
16
18
17
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 83
83
<plugin >
84
84
<groupId >org.jetbrains.kotlin</groupId >
85
85
<artifactId >kotlin-maven-plugin</artifactId >
86
- <version >${kotlin.version} </version >
87
- <executions >
88
- <execution >
89
- <id >compile</id >
90
- <goals ><goal >compile</goal ></goals >
91
- </execution >
92
- <execution >
93
- <id >test-compile</id >
94
- <goals ><goal >test-compile</goal ></goals >
95
- <configuration >
96
- <sourceDirs >
97
- <sourceDir >${project.basedir} /src/test/kotlin</sourceDir >
98
- </sourceDirs >
99
- </configuration >
100
- </execution >
101
- </executions >
102
86
</plugin >
103
87
<plugin >
104
88
<artifactId >maven-compiler-plugin</artifactId >
Original file line number Diff line number Diff line change 94
94
<plugin >
95
95
<groupId >org.jetbrains.kotlin</groupId >
96
96
<artifactId >kotlin-maven-plugin</artifactId >
97
- <version >${kotlin.version} </version >
98
- <executions >
99
- <execution >
100
- <id >compile</id >
101
- <goals ><goal >compile</goal ></goals >
102
- </execution >
103
- <execution >
104
- <id >test-compile</id >
105
- <goals ><goal >test-compile</goal ></goals >
106
- <configuration >
107
- <sourceDirs >
108
- <sourceDir >${project.basedir} /src/test/kotlin</sourceDir >
109
- </sourceDirs >
110
- </configuration >
111
- </execution >
112
- </executions >
113
97
</plugin >
114
98
<plugin >
115
99
<groupId >org.apache.maven.plugins</groupId >
149
133
</build >
150
134
</profile >
151
135
</profiles >
152
- </project >
136
+ </project >
Original file line number Diff line number Diff line change 89
89
<plugin >
90
90
<groupId >org.jetbrains.kotlin</groupId >
91
91
<artifactId >kotlin-maven-plugin</artifactId >
92
- <version >${kotlin.version} </version >
93
- <executions >
94
- <execution >
95
- <id >compile</id >
96
- <goals ><goal >compile</goal ></goals >
97
- </execution >
98
- <execution >
99
- <id >test-compile</id >
100
- <goals ><goal >test-compile</goal ></goals >
101
- <configuration >
102
- <sourceDirs >
103
- <sourceDir >${project.basedir} /src/test/kotlin</sourceDir >
104
- </sourceDirs >
105
- </configuration >
106
- </execution >
107
- </executions >
108
92
</plugin >
109
93
<plugin >
110
94
<groupId >org.apache.maven.plugins</groupId >
Original file line number Diff line number Diff line change 57
57
<plugin >
58
58
<groupId >org.springframework.boot</groupId >
59
59
<artifactId >spring-boot-maven-plugin</artifactId >
60
- <version >${spring-boot.version} </version >
61
60
</plugin >
62
61
<plugin >
63
62
<groupId >org.apache.maven.plugins</groupId >
You can’t perform that action at this time.
0 commit comments