Skip to content

Commit

Permalink
Merge pull request #25 from AlexandrouR/bumpGradleTemplate
Browse files Browse the repository at this point in the history
Bumped gradle.build template version.
  • Loading branch information
AlexandrouR authored Dec 9, 2019
2 parents 4aef303 + 0f47b5f commit 6a35b28
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
14 changes: 6 additions & 8 deletions src/main/resources/build.gradle.template
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ sourceCompatibility = 1.8

repositories {
mavenCentral()
maven { url 'http://dl.bintray.com/web3j/maven' }
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
maven { url "https://dl.bintray.com/ethereum/maven" }
}

web3j {
Expand All @@ -23,19 +20,20 @@ web3j {
}

ext {

web3jVersion = '4.4.0'
web3jVersion = '4.5.10'
logbackVersion = '1.2.3'
junitVersion = '4.12'
}

dependencies {
implementation "org.web3j:core:$web3jVersion",
"ch.qos.logback:logback-core:$logbackVersion",
"ch.qos.logback:logback-classic:$logbackVersion"
implementation("org.web3j:web3j-unit:4.6.0-SNAPSHOT")
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.3.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.3.1'
implementation("org.web3j:web3j-unit:$web3jVersion")
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.3.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.3.1'
}

test {
useJUnitPlatform()
}
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public void verifyThatTestsAreGenerated() throws IOException, InterruptedExcepti

@Test
public void testWithPicoCliWhenArgumentsAreEmpty() {
final String[] args = {"new", "-n= ", "-p= "};
final String[] args = {"new", "-n=", "-p="};
ProjectCreator.main(args);
assertEquals(
outContent.toString(), "Please make sure the required parameters are not empty.\n");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public void testWithPicoCliWhenArgumentsAreCorrect() throws IOException, Interru

@Test
public void testWithPicoCliWhenArgumentsAreEmpty() {
final String[] args = {"import", "-p= ", "-n= ", "-s= "};
final String[] args = {"import", "-p=", "-n=", "-s="};
ProjectImporter.main(args);
assertEquals(
outContent.toString(), "Please make sure the required parameters are not empty.\n");
Expand Down

0 comments on commit 6a35b28

Please sign in to comment.