Skip to content

Commit

Permalink
Updating README and examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
stewartbryson authored and github-actions[bot] committed Jul 5, 2023
1 parent 2d09b16 commit 657d3d3
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 22 deletions.
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ is automatically applied by the `snowflake` plugin:
```groovy
plugins {
id 'java'
id 'io.github.stewartbryson.snowflake' version '2.1.0'
id 'io.github.stewartbryson.snowflake' version '2.1.1'
}
```

Expand Down Expand Up @@ -216,7 +216,7 @@ Our `plugins` DSL from the build file:
plugins {
id 'java'
id 'groovy' // needed for Spock testing framework
id 'io.github.stewartbryson.snowflake' version '2.1.0'
id 'io.github.stewartbryson.snowflake' version '2.1.1'
}
```

Expand Down Expand Up @@ -293,11 +293,11 @@ functionalTest(JvmTestSuite) {
all {
useSpock('2.3-groovy-3.0')
dependencies {
implementation "io.github.stewartbryson:gradle-snowflake-plugin:2.1.0"
implementation "io.github.stewartbryson:gradle-snowflake-plugin:2.1.1"
}
testTask.configure {
failFast true
// which SnowSQL connection to use
// which credentials connection to use
systemProperty 'connection', project.snowflake.connection
}
}
Expand Down Expand Up @@ -356,11 +356,11 @@ SampleTest
Test adding 1 and 2 PASSED
Test adding 3 and 4 PASSED

SUCCESS: Executed 2 tests in 462ms
SUCCESS: Executed 2 tests in 481ms


> Task :snowflakeJvm
Using snowsql config file: /Users/stewartbryson/.snowsql/config
Using credentials config file: /Users/stewartbryson/.snowflake/config.toml
File java-testing-0.1.0-all.jar: UPLOADED
Deploying ==>
CREATE OR REPLACE function add_numbers (a integer, b integer)
Expand All @@ -374,13 +374,13 @@ CREATE OR REPLACE function add_numbers (a integer, b integer)

SnowflakeSampleTest

Test ADD_NUMBERS() function with 1 and 2 PASSED
Test ADD_NUMBERS() function with 1 and 2 PASSED (1.1s)
Test ADD_NUMBERS() function with 3 and 4 PASSED

SUCCESS: Executed 2 tests in 3.4s
SUCCESS: Executed 2 tests in 3.8s


BUILD SUCCESSFUL in 9s
BUILD SUCCESSFUL in 11s
11 actionable tasks: 7 executed, 4 up-to-date
```

Expand Down Expand Up @@ -435,7 +435,7 @@ functionalTest(JvmTestSuite) {
}
testTask.configure {
failFast true
// which SnowSQL connection to use
// which credentials connection to use
systemProperty 'connection', project.snowflake.connection
// if this is ephemeral, the test spec needs the name to connect to
if (project.snowflake.useEphemeral) {
Expand All @@ -454,7 +454,7 @@ We can simulate a GitHub Actions environment just by setting the `GITHUB_ACTIONS
❯ ./gradlew functionalTest

> Task :createEphemeral
Using snowsql config file: /Users/stewartbryson/.snowsql/config
Using credentials config file: /Users/stewartbryson/.snowflake/config.toml
Ephemeral clone EPHEMERAL_JAVA_TESTING_PR_4 created.

> Task :snowflakeJvm
Expand Down Expand Up @@ -493,7 +493,7 @@ ephemeralName = 'testing_db'
❯ ./gradlew functionalTest
> Task :createEphemeral
Using snowsql config file: /Users/stewartbryson/.snowsql/config
Using credentials config file: /Users/stewartbryson/.snowflake/config.toml
Ephemeral clone testing_db created.
> Task :snowflakeJvm
Expand Down Expand Up @@ -596,7 +596,7 @@ including `publishSnowflakePublicationToS3_mavenRepository` which uploads the ar
console output to that effect:

```
gradle snowflakeJvm --no-build-cache --console plain
./gradlew snowflakeJvm --no-build-cache --console plain
> Task :gradle-snowflake:gradle-snowflake-plugin:compileJava NO-SOURCE
> Task :gradle-snowflake:gradle-snowflake-plugin:compileGroovy UP-TO-DATE
> Task :gradle-snowflake:gradle-snowflake-plugin:pluginDescriptors UP-TO-DATE
Expand All @@ -615,7 +615,7 @@ console output to that effect:
> Task :publishSnowflakePublicationToS3_mavenRepository
> Task :snowflakeJvm
Using snowsql config file: /Users/stewartbryson/.snowsql/config
Using credentials config file: /Users/stewartbryson/.snowflake/config.toml
Deploying ==>
CREATE OR REPLACE function add_numbers (a integer, b integer)
returns string
Expand Down Expand Up @@ -677,7 +677,7 @@ BUILD SUCCESSFUL in 1s

The `functionalTest` task contains all the tests that actually make a connection to Snowflake and test a deployment,
except those involved with external stages.
You need to add a connection in `~/.snowsql/config` called `gradle_plugin`.
You need to add a connection in `~/.snowflake/config.toml` called `gradle_plugin`.
> WARNING: Ensure that the credentials you provide in `gradle_plugin` are safe for development purposes.
The `integrationTest` task requires the following external stages to exist in your Snowflake account:
Expand Down
2 changes: 1 addition & 1 deletion examples/groovy/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id 'groovy'
id 'com.github.ben-manes.versions' version '0.47.0'
id 'io.github.stewartbryson.snowflake' version '2.1.0'
id 'io.github.stewartbryson.snowflake' version '2.1.1'
}

repositories {
Expand Down
2 changes: 1 addition & 1 deletion examples/java-external-stage/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id 'java'
id 'com.github.ben-manes.versions' version '0.47.0'
id 'io.github.stewartbryson.snowflake' version '2.1.0'
id 'io.github.stewartbryson.snowflake' version '2.1.1'
}

repositories {
Expand Down
4 changes: 2 additions & 2 deletions examples/java-testing/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id 'java'
id 'groovy' // needed for Spock testing framework
id 'io.github.stewartbryson.snowflake' version '2.1.0'
id 'io.github.stewartbryson.snowflake' version '2.1.1'
id 'com.adarshr.test-logger' version '3.2.0' // added for testing
id 'com.github.ben-manes.versions' version '0.47.0'
}
Expand Down Expand Up @@ -43,7 +43,7 @@ testing {
all {
useSpock('2.3-groovy-3.0')
dependencies {
implementation "io.github.stewartbryson:gradle-snowflake-plugin:2.1.0"
implementation "io.github.stewartbryson:gradle-snowflake-plugin:2.1.1"
}
testTask.configure {
failFast true
Expand Down
2 changes: 1 addition & 1 deletion examples/java/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id 'java'
id 'com.github.ben-manes.versions' version '0.47.0'
id 'io.github.stewartbryson.snowflake' version '2.1.0'
id 'io.github.stewartbryson.snowflake' version '2.1.1'
}

repositories {
Expand Down
2 changes: 1 addition & 1 deletion examples/kotlin/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id "org.jetbrains.kotlin.jvm" version "1.8.21"
id 'com.github.ben-manes.versions' version '0.47.0'
id 'io.github.stewartbryson.snowflake' version '2.1.0'
id 'io.github.stewartbryson.snowflake' version '2.1.1'
}

repositories {
Expand Down
2 changes: 1 addition & 1 deletion examples/scala/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id 'scala'
id 'com.github.ben-manes.versions' version '0.47.0'
id 'io.github.stewartbryson.snowflake' version '2.1.0'
id 'io.github.stewartbryson.snowflake' version '2.1.1'
}

repositories {
Expand Down

0 comments on commit 657d3d3

Please sign in to comment.