Skip to content

Commit

Permalink
Merge pull request #96 from stewartbryson/stewart
Browse files Browse the repository at this point in the history
Bumped plugins.
  • Loading branch information
stewartbryson authored Jun 2, 2023
2 parents a5e9afb + f58d8a0 commit ac1e705
Show file tree
Hide file tree
Showing 8 changed files with 169 additions and 169 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/gradle-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,24 @@ jobs:
steps:
- uses: actions/checkout@v3

# - id: echo_environment
# run: ./echo-environment.sh
# name: "Echo environment"
# shell: bash
# - id: echo_environment
# run: ./echo-environment.sh
# name: "Echo environment"
# shell: bash

- id: gradle_properties
run: |
mkdir -p $HOME/.gradle
echo "$GRADLE_PROPERTIES" > $HOME/.gradle/gradle.properties
mkdir -p $HOME/.gradle
echo "$GRADLE_PROPERTIES" > $HOME/.gradle/gradle.properties
name: 'Write gradle.properties file'
shell: bash
env:
GRADLE_PROPERTIES: ${{secrets.GRADLE_PROPERTIES}}

- id: snowsql_config
run: |
mkdir -p $HOME/.snowsql
echo "$SNOW_CONFIG" > $HOME/.snowsql/config
mkdir -p $HOME/.snowsql
echo "$SNOW_CONFIG" > $HOME/.snowsql/config
name: 'Write .snowsql/config file'
shell: bash
env:
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:

strategy:
matrix:
directory: [java-manual, java, java-testing, groovy, scala, kotlin]
directory: [ java-manual, java, java-testing, groovy, scala, kotlin ]
#directory: [java]

steps:
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id "com.github.ben-manes.versions" version "0.46.0"
id "pl.allegro.tech.build.axion-release" version "1.15.1"
id "pl.allegro.tech.build.axion-release" version "1.15.3"
id "com.github.breadmoirai.github-release" version "2.4.1"
id "build-dashboard"
id 'idea'
Expand Down
44 changes: 22 additions & 22 deletions src/examples/groovy/build.gradle
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
plugins {
id 'groovy'
id 'com.github.ben-manes.versions' version '0.46.0'
id 'io.github.stewartbryson.snowflake' version '@version@'
id 'groovy'
id 'com.github.ben-manes.versions' version '0.46.0'
id 'io.github.stewartbryson.snowflake' version '@version@'
}

repositories {
mavenCentral()
mavenCentral()
}

dependencies {
implementation 'org.codehaus.groovy:groovy:3.0.17'
implementation 'org.codehaus.groovy:groovy:3.0.17'
}

java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
}

snowflake {
connection = 'gradle_plugin'
stage = 'upload'
applications {
add_numbers {
inputs = ["a integer", "b integer"]
returns = "string"
handler = "Sample.addNum"
}
}
connection = 'gradle_plugin'
stage = 'upload'
applications {
add_numbers {
inputs = ["a integer", "b integer"]
returns = "string"
handler = "Sample.addNum"
}
}
}

version='0.1.0'
version = '0.1.0'

// empty task for matrix strategy execution in GitHub Actions
// please ignore
afterEvaluate {
tasks.register('matrixStrategy') {
description 'Empty task for matrix strategy execution in GitHub Actions.'
dependsOn snowflakeJvm
}
tasks.register('matrixStrategy') {
description 'Empty task for matrix strategy execution in GitHub Actions.'
dependsOn snowflakeJvm
}
}
46 changes: 23 additions & 23 deletions src/examples/java-external-stage/build.gradle
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
plugins {
id 'java'
id 'com.github.ben-manes.versions' version '0.46.0'
id 'io.github.stewartbryson.snowflake' version '@version@'
id 'java'
id 'com.github.ben-manes.versions' version '0.46.0'
id 'io.github.stewartbryson.snowflake' version '@version@'
}

repositories {
mavenCentral()
mavenCentral()
}

java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
}

snowflake {
connection = 'gradle_plugin'
stage = 's3_maven'
groupId = 'io.github.stewartbryson'
artifactId = 'sample-udfs'
applications {
add_numbers {
inputs = ["a integer", "b integer"]
returns = "string"
handler = "Sample.addNum"
}
}
connection = 'gradle_plugin'
stage = 's3_maven'
groupId = 'io.github.stewartbryson'
artifactId = 'sample-udfs'
applications {
add_numbers {
inputs = ["a integer", "b integer"]
returns = "string"
handler = "Sample.addNum"
}
}
}

version='0.1.0'
version = '0.1.0'

// empty task for matrix strategy execution in GitHub Actions
// please ignore
afterEvaluate {
tasks.register('matrixStrategy') {
description 'Empty task for matrix strategy execution in GitHub Actions.'
dependsOn snowflakeJvm
}
tasks.register('matrixStrategy') {
description 'Empty task for matrix strategy execution in GitHub Actions.'
dependsOn snowflakeJvm
}
}
100 changes: 50 additions & 50 deletions src/examples/java-testing/build.gradle
Original file line number Diff line number Diff line change
@@ -1,72 +1,72 @@
plugins {
id 'java'
id 'groovy' // needed for Spock testing framework
id 'io.github.stewartbryson.snowflake' version '@version@'
id 'com.adarshr.test-logger' version '3.2.0' // added for testing
id 'com.github.ben-manes.versions' version '0.46.0'
id 'java'
id 'groovy' // needed for Spock testing framework
id 'io.github.stewartbryson.snowflake' version '@version@'
id 'com.adarshr.test-logger' version '3.2.0' // added for testing
id 'com.github.ben-manes.versions' version '0.46.0'
}

repositories {
mavenCentral()
gradlePluginPortal() // added for functionalTest dependency
mavenCentral()
gradlePluginPortal() // added for functionalTest dependency
}

java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
}

snowflake {
connection = 'gradle_plugin'
stage = 'upload'
// Explained in the Ephemeral Cloning section
useEphemeral = snowflake.isCI() // use ephemeral with CI/CD workflows
keepEphemeral = snowflake.isPR() // keep ephemeral for PRs
applications {
add_numbers {
inputs = ["a integer", "b integer"]
returns = "string"
handler = "Sample.addNum"
}
}
connection = 'gradle_plugin'
stage = 'upload'
// Explained in the Ephemeral Cloning section
useEphemeral = snowflake.isCI() // use ephemeral with CI/CD workflows
keepEphemeral = snowflake.isPR() // keep ephemeral for PRs
applications {
add_numbers {
inputs = ["a integer", "b integer"]
returns = "string"
handler = "Sample.addNum"
}
}
}

// Explained in the Testing section
testing {
suites {
test {
useSpock('2.3-groovy-3.0')
}
functionalTest(JvmTestSuite) {
targets {
all {
useSpock('2.3-groovy-3.0')
dependencies {
implementation "io.github.stewartbryson:gradle-snowflake-plugin:@version@"
}
testTask.configure {
failFast true
// which SnowSQL connection to use
systemProperty 'connection', snowflake.connection
// if this is ephemeral, the test spec needs the name to connect to
if (snowflake.useEphemeral) {
systemProperty 'ephemeralName', snowflake.ephemeralName
}
}
}
suites {
test {
useSpock('2.3-groovy-3.0')
}
functionalTest(JvmTestSuite) {
targets {
all {
useSpock('2.3-groovy-3.0')
dependencies {
implementation "io.github.stewartbryson:gradle-snowflake-plugin:@version@"
}
testTask.configure {
failFast true
// which SnowSQL connection to use
systemProperty 'connection', snowflake.connection
// if this is ephemeral, the test spec needs the name to connect to
if (snowflake.useEphemeral) {
systemProperty 'ephemeralName', snowflake.ephemeralName
}
}
}
}
}
}
}
}
}

version='0.1.0'
version = '0.1.0'

// empty task for matrix strategy execution in GitHub Actions
// please ignore
afterEvaluate {
tasks.register('matrixStrategy') {
description 'Empty task for matrix strategy execution in GitHub Actions.'
dependsOn functionalTest, dropEphemeral
}
tasks.register('matrixStrategy') {
description 'Empty task for matrix strategy execution in GitHub Actions.'
dependsOn functionalTest, dropEphemeral
}
}
42 changes: 21 additions & 21 deletions src/examples/java/build.gradle
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
plugins {
id 'java'
id 'com.github.ben-manes.versions' version '0.46.0'
id 'io.github.stewartbryson.snowflake' version '@version@'
id 'java'
id 'com.github.ben-manes.versions' version '0.46.0'
id 'io.github.stewartbryson.snowflake' version '@version@'
}

repositories {
mavenCentral()
mavenCentral()
}

java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
}

snowflake {
connection = 'gradle_plugin'
stage = 'upload'
applications {
add_numbers {
inputs = ["a integer", "b integer"]
returns = "string"
handler = "Sample.addNum"
}
}
connection = 'gradle_plugin'
stage = 'upload'
applications {
add_numbers {
inputs = ["a integer", "b integer"]
returns = "string"
handler = "Sample.addNum"
}
}
}

version='0.1.0'
version = '0.1.0'

// empty task for matrix strategy execution in GitHub Actions
// please ignore
afterEvaluate {
tasks.register('matrixStrategy') {
description 'Empty task for matrix strategy execution in GitHub Actions.'
dependsOn snowflakeJvm
}
tasks.register('matrixStrategy') {
description 'Empty task for matrix strategy execution in GitHub Actions.'
dependsOn snowflakeJvm
}
}
Loading

0 comments on commit ac1e705

Please sign in to comment.