Skip to content

Commit

Permalink
upgrade dependencies (#60)
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Danilenko <alexander.danilenko@revolut.com>
  • Loading branch information
lazer-dev and Alex Danilenko committed Apr 25, 2024
1 parent e12842d commit 65b56d8
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gradle.yml
Expand Up @@ -27,5 +27,5 @@ jobs:
if: failure()
with:
name: test-report
path: server/build/reports
path: core/build/reports
retention-days: 1
6 changes: 4 additions & 2 deletions build.gradle
Expand Up @@ -31,11 +31,13 @@ subprojects {
compileOnly "org.slf4j:slf4j-api:$slf4jApiVersion"
runtimeOnly "ch.qos.logback:logback-classic:$logbackClassicVersion"

testImplementation "org.codehaus.groovy:groovy-all:$groovyVersion"
testImplementation "org.apache.groovy:groovy-all:$groovyVersion"
testImplementation "org.spockframework:spock-core:$spockVersion"
testImplementation "org.objenesis:objenesis:$objenesis"

testIntegrationImplementation "org.codehaus.groovy:groovy-all:$groovyVersion"
testIntegrationImplementation "org.apache.groovy:groovy-all:$groovyVersion"
testIntegrationImplementation "org.spockframework:spock-core:$spockVersion"
testIntegrationImplementation "org.objenesis:objenesis:$objenesis"
}

test {
Expand Down
2 changes: 1 addition & 1 deletion core/build.gradle
Expand Up @@ -8,7 +8,7 @@ dependencies {
implementation "org.apache.tika:tika-core:$apacheTika"

testImplementation "org.apache.commons:commons-lang3:$apacheCommons"
testImplementation "org.apache.httpcomponents:httpclient:$apacheHttpClientVersion"
testImplementation "org.apache.httpcomponents.client5:httpclient5:$apacheHttpClientVersion"
testImplementation "org.awaitility:awaitility:$awaitilityVersion"
testImplementation "com.konghq:unirest-java:$unirestVersion"
}
Expand Down
18 changes: 3 additions & 15 deletions core/src/main/java/spotty/version/Version.java
Expand Up @@ -24,9 +24,9 @@
public final class Version implements Comparable<Version>, Serializable {
private static final long serialVersionUID = 1L;

private final int major;
private final int minor;
private final int patch;
public final int major;
public final int minor;
public final int patch;

private final String toString;
private final int hash;
Expand Down Expand Up @@ -55,18 +55,6 @@ public static Version parse(String version) {
return new Version(major, minor, patch);
}

public int major() {
return major;
}

public int minor() {
return minor;
}

public int patch() {
return patch;
}

@Override
public int compareTo(Version version) {
if (this.equals(version)) {
Expand Down
Expand Up @@ -22,8 +22,7 @@ class SpottyStartSpec extends Specification {
server.start()

then:
!server.isStarted()
!server.isRunning()
server.isStarted() == false
}

def "should wait until started"() {
Expand All @@ -32,8 +31,34 @@ class SpottyStartSpec extends Specification {
server.awaitUntilStart()

then:
server.isStarted()
server.isRunning()
server.isStarted() == true
}

def "should not wait until stopped"() {
when:
server.start()
server.awaitUntilStart()

server.stop()

then:
server.isStarted() == true
}

def "should wait until stopped"() {
when:
server.start()
server.awaitUntilStart()

then:
server.isStarted() == true

when:
server.stop()
server.awaitUntilStop()

then:
server.isStarted() == false
}

}
24 changes: 14 additions & 10 deletions gradle.properties
Expand Up @@ -8,13 +8,17 @@ group=com.spotty-server
version=1.0.5

# dependencies
groovyVersion=3.0.10
spockVersion=2.2-M1-groovy-3.0
slf4jApiVersion=1.7.36
logbackClassicVersion=1.2.11
unirestVersion=3.13.10
apacheHttpClientVersion=4.5.13
apacheCommons=3.12.0
apacheTika=2.4.1
awaitilityVersion=4.2.0
googleGuavaVersion=31.1-jre
groovyVersion=4.0.21
spockVersion=2.4-M4-groovy-4.0

# spock requires this dependency
objenesis=3.3

slf4jApiVersion=2.0.13
logbackClassicVersion=1.3.14
unirestVersion=3.14.5
apacheHttpClientVersion=5.3.1
apacheCommons=3.14.0
apacheTika=2.9.2
awaitilityVersion=4.2.1
googleGuavaVersion=33.1.0-jre

0 comments on commit 65b56d8

Please sign in to comment.