Skip to content

Commit

Permalink
update bundler and minimize dependency scopes
Browse files Browse the repository at this point in the history
also added a placeholder test
  • Loading branch information
claymccoy committed Apr 17, 2020
1 parent 13587f9 commit 73408b1
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 6 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
org.gradle.parallel=true

spinnakerGradleVersion=7.5.2
spinnakerGradleVersion=7.11.6
pf4jVersion=3.2.0
korkVersion=7.37.0
orcaVersion=8.3.0
10 changes: 5 additions & 5 deletions spring-example-orca/spring-example-orca.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ spinnakerPlugin {
}

dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
compileOnly "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
compileOnly (group: 'org.springframework', name: 'spring-context', version: '5.2.1.RELEASE')
compileOnly (group: 'com.netflix.spinnaker.kork', name: 'kork-plugins-spring-api', version: "${korkVersion}")
compileOnly (group: 'org.springframework', name: 'spring-web', version: '5.2.2.RELEASE')
compileOnly (group: 'com.netflix.spinnaker.orca', name: 'orca-core', version: "${orcaVersion}") {
exclude group: "org.slf4j"
}
implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7.28'
compileOnly (group: 'com.netflix.spinnaker.orca', name: 'orca-core', version: "${orcaVersion}")


testImplementation (group: 'com.netflix.spinnaker.orca', name: 'orca-core', version: "${orcaVersion}")

testImplementation "org.junit.jupiter:junit-jupiter-api:5.3.2"
testImplementation group: 'io.strikt', name: 'strikt-core', version: '0.22.1'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package io.armory.plugin.example.spring

import com.netflix.spinnaker.orca.capabilities.CapabilitiesService
import dev.minutest.junit.JUnit5Minutests
import dev.minutest.rootContext
import strikt.api.expectThat
import strikt.assertions.isEqualTo

class NewServiceTest : JUnit5Minutests {

class StubCapabilitiesService : CapabilitiesService(null, null)

fun tests() = rootContext {
test("execute new service") {
expectThat(NewService(StubCapabilitiesService(), NewProperties()).test())
.isEqualTo(
listOf("new service", "works")
)
}
}
}

0 comments on commit 73408b1

Please sign in to comment.