From 4d1f4c459ab239b7790740f82416526aec3735aa Mon Sep 17 00:00:00 2001 From: Stewart Bryson Date: Mon, 12 Sep 2022 11:19:08 -0400 Subject: [PATCH] moving everything to stewartbryson --- README.md | 16 ++++++++-------- build.gradle | 4 ++-- examples/external-stage/build.gradle | 4 ++-- examples/external-stage/settings.gradle | 2 +- examples/internal-stage/build.gradle | 2 +- examples/internal-stage/settings.gradle | 2 +- examples/simple-jar/settings.gradle | 2 +- plugin/build.gradle | 12 ++++++------ .../github/stewartbryson}/JavaTest.groovy | 8 ++++---- .../stewartbryson}/ApplicationContainer.groovy | 2 +- .../stewartbryson}/SnowflakeExtension.groovy | 2 +- .../github/stewartbryson}/SnowflakePlugin.groovy | 2 +- .../stewartbryson}/SnowflakePublish.groovy | 2 +- 13 files changed, 30 insertions(+), 30 deletions(-) rename plugin/src/functionalTest/groovy/{io/noumenal => com/github/stewartbryson}/JavaTest.groovy (95%) rename plugin/src/main/groovy/{io/noumenal => com/github/stewartbryson}/ApplicationContainer.groovy (97%) rename plugin/src/main/groovy/{io/noumenal => com/github/stewartbryson}/SnowflakeExtension.groovy (98%) rename plugin/src/main/groovy/{io/noumenal => com/github/stewartbryson}/SnowflakePlugin.groovy (98%) rename plugin/src/main/groovy/{io/noumenal => com/github/stewartbryson}/SnowflakePublish.groovy (99%) diff --git a/README.md b/README.md index 152f281..4205f31 100644 --- a/README.md +++ b/README.md @@ -18,18 +18,18 @@ It has three basic modes: 2. Slightly heavier publishing using external Snowflake stages and auto-configuration of the [`maven-publish`](https://docs.gradle.org/current/userguide/publishing_maven.html) plugin. 3. Publishing to Snowflake using external stages and custom configuration of the [`maven-publish`](https://docs.gradle.org/current/userguide/publishing_maven.html) plugin. -Have a look at the [API docs](https://s3.amazonaws.com/docs.noumenal.io/gradle-snowflake/latest/io/noumenal/package-summary.html). +Have a look at the [API docs](https://s3.amazonaws.com/stewartbryson.docs/gradle-snowflake/latest/com/github/stewartbryson/package-summary.html). # Internal Stages using Snowpark Unless you have a heavy investment in Gradle as an organization, this is likely the option you want to use. Additionally, if you plan on *sharing* UDFs across Snowflake accounts, this is the option you *have* to use, as JARs need to be in named internal stages. -Look at the [sample project](examples/internal-stage/) and you'll notice a few differences in the [build file](examples/internal-stage/build.gradle). We applied `io.noumenal.gradle.snowflake` and removed `com.github.johnrengelman.shadow` because the `shadow` plugin is automatically applied by the `snowflake` plugin: +Look at the [sample project](examples/internal-stage/) and you'll notice a few differences in the [build file](examples/internal-stage/build.gradle). We applied `com.github.stewartbryson.snowflake` and removed `com.github.johnrengelman.shadow` because the `shadow` plugin is automatically applied by the `snowflake` plugin: ``` plugins { id 'java' id 'com.github.ben-manes.versions' version '0.42.0' - id 'io.noumenal.gradle.snowflake' version '0.1.11' + id 'com.github.stewartbryson.snowflake' version '0.1.11' } ``` @@ -45,7 +45,7 @@ Path :snowflakePublish Type - SnowflakePublish (io.noumenal.SnowflakePublish) + SnowflakePublish (com.github.stewartbryson.SnowflakePublish) Options --account Override the URL of the Snowflake account. @@ -77,7 +77,7 @@ BUILD SUCCESSFUL in 597ms ``` Several command-line options mention _overriding_ other configuration values. -This is because the plugin also provides a configuration closure called `snowflake` that we can use to configure our build, all of which are documented in the [class API](https://s3.amazonaws.com/docs.noumenal.io/gradle-snowflake/latest/io/noumenal/SnowflakeExtension.html): +This is because the plugin also provides a configuration closure called `snowflake` that we can use to configure our build, all of which are documented in the [class API](https://s3.amazonaws.com/stewartbryson.docs/gradle-snowflake/latest/com/github/stewartbryson/SnowflakeExtension.html): ``` snowflake { @@ -109,7 +109,7 @@ snowflake.user = myusername snowflake.password = mypassword ``` -The nested [`applications` closure](https://s3.amazonaws.com/docs.noumenal.io/gradle-snowflake/latest/io/noumenal/ApplicationContainer.html) might seem a bit more daunting. +The nested [`applications` closure](https://s3.amazonaws.com/stewartbryson.docs/gradle-snowflake/latest/com/github/stewartbryson/ApplicationContainer.html) might seem a bit more daunting. This is a simple way to use DSL to configure all the different UDFs we want to automatically create (or recreate) each time we publish the JAR file. The example above will generate and execute the statement: @@ -162,7 +162,7 @@ Gradle has [built-in support](https://docs.gradle.org/current/userguide/declarin Looking at the [sample project](examples/external-stage/), notice we've populated a few additional properties: ``` -groupId = 'io.noumenal' +groupId = 'com.github.stewartbryson' artifactId = 'sample-udfs' ``` @@ -226,7 +226,7 @@ CREATE OR REPLACE function add_numbers (a integer, b integer) returns string language JAVA handler = 'Sample.addNum' - imports = ('@maven/io/noumenal/sample-udfs/0.1.0/sample-udfs-0.1.0-all.jar') + imports = ('@maven/com/github/stewartbryson/sample-udfs/0.1.0/sample-udfs-0.1.0-all.jar') BUILD SUCCESSFUL in 12s diff --git a/build.gradle b/build.gradle index 870e545..dc4dcb9 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ plugins { } allprojects { - group = 'io.noumenal' + group = 'com.github.stewartbryson' repositories { mavenCentral() @@ -30,7 +30,7 @@ scmVersion { githubRelease { token project.findProperty('githubToken').toString() - owner 'noumenalio' + owner 'stewartbryson' repo rootProject.name overwrite true generateReleaseNotes true diff --git a/examples/external-stage/build.gradle b/examples/external-stage/build.gradle index ca4e9ee..0484d4b 100644 --- a/examples/external-stage/build.gradle +++ b/examples/external-stage/build.gradle @@ -1,7 +1,7 @@ plugins { id 'java' id 'com.github.ben-manes.versions' version '0.42.0' - id 'io.noumenal.gradle.snowflake' version '0.2.4' + id 'com.github.stewartbryson.snowflake.snowflake' version '0.2.4' } repositories { @@ -29,7 +29,7 @@ snowflake { database = 'stewart_db' schema = 'developer' stage = 'maven' - groupId = 'io.noumenal' + groupId = 'com.github.stewartbryson' artifactId = 'sample-udfs' applications { add_numbers { diff --git a/examples/external-stage/settings.gradle b/examples/external-stage/settings.gradle index 8ab7271..71c8e98 100644 --- a/examples/external-stage/settings.gradle +++ b/examples/external-stage/settings.gradle @@ -1,7 +1,7 @@ pluginManagement { repositories { maven { - url "s3://nio-maven" + url "s3://stewartbryson.maven" authentication { awsIm(AwsImAuthentication) } diff --git a/examples/internal-stage/build.gradle b/examples/internal-stage/build.gradle index 9a8a8a5..e1d1b41 100644 --- a/examples/internal-stage/build.gradle +++ b/examples/internal-stage/build.gradle @@ -1,7 +1,7 @@ plugins { id 'java' id 'com.github.ben-manes.versions' version '0.42.0' - id 'io.noumenal.gradle.snowflake' version '0.2.4' + id 'com.github.stewartbryson.snowflake' version '0.2.4' } repositories { diff --git a/examples/internal-stage/settings.gradle b/examples/internal-stage/settings.gradle index 80d7636..5a9116f 100644 --- a/examples/internal-stage/settings.gradle +++ b/examples/internal-stage/settings.gradle @@ -1,7 +1,7 @@ pluginManagement { repositories { maven { - url "s3://nio-maven" + url "s3://stewartbryson.maven" authentication { awsIm(AwsImAuthentication) } diff --git a/examples/simple-jar/settings.gradle b/examples/simple-jar/settings.gradle index 80d7636..5a9116f 100644 --- a/examples/simple-jar/settings.gradle +++ b/examples/simple-jar/settings.gradle @@ -1,7 +1,7 @@ pluginManagement { repositories { maven { - url "s3://nio-maven" + url "s3://stewartbryson.maven" authentication { awsIm(AwsImAuthentication) } diff --git a/plugin/build.gradle b/plugin/build.gradle index dde83c3..768c98d 100644 --- a/plugin/build.gradle +++ b/plugin/build.gradle @@ -58,8 +58,8 @@ testing { pluginBundle { description = 'Simplifies publishing UDFs to Snowflake. Supports internal stages using Snowpark, or external stages with maven-publish.' - website = 'http://noumenal.io/' - vcsUrl = 'https://github.com/noumenalio/gradle-snowflake' + website = 'https://github.com/stewartbryson/gradle-snowflake' + vcsUrl = 'https://github.com/stewartbryson/gradle-snowflake' tags = ['snowflake', 'snowpark', 'dataops', 'udf'] } @@ -67,9 +67,9 @@ gradlePlugin { // Define the plugin plugins { snowflake { - id = 'io.noumenal.gradle.snowflake' + id = 'com.github.stewartbryson.snowflake' displayName = 'Snowflake Plugin' - implementationClass = 'io.noumenal.SnowflakePlugin' + implementationClass = 'com.github.stewartbryson.SnowflakePlugin' } } } @@ -81,7 +81,7 @@ publishing { repositories { maven { name 's3' - url 's3://nio-maven' + url 's3://stewartbryson.maven' authentication { awsIm(AwsImAuthentication) } @@ -90,7 +90,7 @@ publishing { } s3 { - bucket = 'docs.noumenal.io' + bucket = 'stewartbryson.docs' region = 'us-east-1' } diff --git a/plugin/src/functionalTest/groovy/io/noumenal/JavaTest.groovy b/plugin/src/functionalTest/groovy/com/github/stewartbryson/JavaTest.groovy similarity index 95% rename from plugin/src/functionalTest/groovy/io/noumenal/JavaTest.groovy rename to plugin/src/functionalTest/groovy/com/github/stewartbryson/JavaTest.groovy index 23859e7..52b7a4e 100644 --- a/plugin/src/functionalTest/groovy/io/noumenal/JavaTest.groovy +++ b/plugin/src/functionalTest/groovy/com/github/stewartbryson/JavaTest.groovy @@ -1,7 +1,7 @@ /* * This Groovy source file was generated by the Gradle 'init' task. */ -package io.noumenal +package com.github.stewartbryson import groovy.util.logging.Slf4j import spock.lang.Shared @@ -10,7 +10,7 @@ import spock.lang.TempDir import org.gradle.testkit.runner.GradleRunner /** - * A simple functional test for the 'io.noumenal.gradle.snowflake' plugin. + * A simple functional test for the 'com.github.stewartbryson.snowflake' plugin. */ @Slf4j class JavaTest extends Specification { @@ -47,7 +47,7 @@ class JavaTest extends Specification { buildFile = new File(projectDir, 'build.gradle') buildFile.write(""" |plugins { - | id 'io.noumenal.gradle.snowflake' + | id 'com.github.stewartbryson.snowflake' | id 'java' |} |java { @@ -56,7 +56,7 @@ class JavaTest extends Specification { | } |} |snowflake { - | groupId = 'io.noumenal' + | groupId = 'com.github.stewartbryson' | artifactId = 'test-gradle-snowflake' | role = '$role' | database = '$database' diff --git a/plugin/src/main/groovy/io/noumenal/ApplicationContainer.groovy b/plugin/src/main/groovy/com/github/stewartbryson/ApplicationContainer.groovy similarity index 97% rename from plugin/src/main/groovy/io/noumenal/ApplicationContainer.groovy rename to plugin/src/main/groovy/com/github/stewartbryson/ApplicationContainer.groovy index 0b86964..18f5b5e 100644 --- a/plugin/src/main/groovy/io/noumenal/ApplicationContainer.groovy +++ b/plugin/src/main/groovy/com/github/stewartbryson/ApplicationContainer.groovy @@ -1,4 +1,4 @@ -package io.noumenal +package com.github.stewartbryson import groovy.util.logging.Slf4j diff --git a/plugin/src/main/groovy/io/noumenal/SnowflakeExtension.groovy b/plugin/src/main/groovy/com/github/stewartbryson/SnowflakeExtension.groovy similarity index 98% rename from plugin/src/main/groovy/io/noumenal/SnowflakeExtension.groovy rename to plugin/src/main/groovy/com/github/stewartbryson/SnowflakeExtension.groovy index 58c1354..4c1a5c0 100644 --- a/plugin/src/main/groovy/io/noumenal/SnowflakeExtension.groovy +++ b/plugin/src/main/groovy/com/github/stewartbryson/SnowflakeExtension.groovy @@ -1,4 +1,4 @@ -package io.noumenal +package com.github.stewartbryson import org.gradle.api.Project /** diff --git a/plugin/src/main/groovy/io/noumenal/SnowflakePlugin.groovy b/plugin/src/main/groovy/com/github/stewartbryson/SnowflakePlugin.groovy similarity index 98% rename from plugin/src/main/groovy/io/noumenal/SnowflakePlugin.groovy rename to plugin/src/main/groovy/com/github/stewartbryson/SnowflakePlugin.groovy index ddfb34e..87c3bd9 100644 --- a/plugin/src/main/groovy/io/noumenal/SnowflakePlugin.groovy +++ b/plugin/src/main/groovy/com/github/stewartbryson/SnowflakePlugin.groovy @@ -1,4 +1,4 @@ -package io.noumenal +package com.github.stewartbryson import groovy.util.logging.Slf4j import org.gradle.api.Project diff --git a/plugin/src/main/groovy/io/noumenal/SnowflakePublish.groovy b/plugin/src/main/groovy/com/github/stewartbryson/SnowflakePublish.groovy similarity index 99% rename from plugin/src/main/groovy/io/noumenal/SnowflakePublish.groovy rename to plugin/src/main/groovy/com/github/stewartbryson/SnowflakePublish.groovy index a085537..b78c7ac 100644 --- a/plugin/src/main/groovy/io/noumenal/SnowflakePublish.groovy +++ b/plugin/src/main/groovy/com/github/stewartbryson/SnowflakePublish.groovy @@ -1,4 +1,4 @@ -package io.noumenal +package com.github.stewartbryson import com.snowflake.snowpark_java.PutResult import com.snowflake.snowpark_java.Session