diff --git a/.github/workflows/gradle-publish.yml b/.github/workflows/gradle-publish.yml index 01a57e6..0a72f58 100644 --- a/.github/workflows/gradle-publish.yml +++ b/.github/workflows/gradle-publish.yml @@ -37,7 +37,7 @@ jobs: - name: Gradle publish uses: gradle/gradle-build-action@v2 with: - arguments: publish githubRelease publishDocs buildDashboard -PgithubToken=${{secrets.GITHUB_TOKEN}} + arguments: publish githubRelease publishDocs -PgithubToken=${{secrets.GITHUB_TOKEN}} env: AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}} AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}} diff --git a/README.md b/README.md index d54858d..8cc43f3 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ +# Limitation +In my tests, the `com.snowflake:snowpark:1.6.0` library used in this plugin has runtime issues on any JDK higher than 13. It has to do with new security enhancements in later versions. I have not isolated the exact issue, and whether it's specific to this plugin. + # Motivation It needs to be easy to develop and test Java applications even if they are being deployed to Snowflake using Snowpark and UDFs. Using [Apache Gradle](https://www.gradle.org), we can easily build shaded JAR files with dependencies using the [shadow plugin](https://imperceptiblethoughts.com/shadow/), and I've provided a [sample project](examples/simple-jar/) that demonstrates this basic use case: diff --git a/examples/external-stage/settings.gradle b/examples/external-stage/settings.gradle index 71c8e98..e3fa921 100644 --- a/examples/external-stage/settings.gradle +++ b/examples/external-stage/settings.gradle @@ -1,12 +1 @@ -pluginManagement { - repositories { - maven { - url "s3://stewartbryson.maven" - authentication { - awsIm(AwsImAuthentication) - } - } - gradlePluginPortal() - } -} rootProject.name = 'external-stage' diff --git a/examples/internal-stage/settings.gradle b/examples/internal-stage/settings.gradle index 5a9116f..e009d54 100644 --- a/examples/internal-stage/settings.gradle +++ b/examples/internal-stage/settings.gradle @@ -1,12 +1 @@ -pluginManagement { - repositories { - maven { - url "s3://stewartbryson.maven" - authentication { - awsIm(AwsImAuthentication) - } - } - gradlePluginPortal() - } -} rootProject.name = 'internal-stage' diff --git a/plugin/build.gradle b/plugin/build.gradle index 3faf1c1..7020b66 100644 --- a/plugin/build.gradle +++ b/plugin/build.gradle @@ -75,19 +75,7 @@ gradlePlugin { } gradlePlugin.testSourceSets(sourceSets.functionalTest) -build.dependsOn validatePlugins - -publishing { - repositories { - maven { - name 's3' - url 's3://stewartbryson.maven' - authentication { - awsIm(AwsImAuthentication) - } - } - } -} +tasks.build.dependsOn validatePlugins s3 { bucket = 'stewartbryson.docs' @@ -110,5 +98,7 @@ tasks.register("publishVersionDocs", com.fuseanalytics.gradle.s3.S3Upload) { tasks.register("publishDocs") { dependsOn tasks.publishLatestDocs, tasks.publishVersionDocs - mustRunAfter tasks.publish + mustRunAfter tasks.publishPlugins } + +tasks.publish.dependsOn tasks.publishPlugins