Skip to content

Commit

Permalink
Merge pull request #33 from stewartbryson/develop
Browse files Browse the repository at this point in the history
Publishing to plugin portal.
  • Loading branch information
stewartbryson authored Sep 13, 2022
2 parents 35fce9d + 44531ec commit ef48614
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 37 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gradle-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
11 changes: 0 additions & 11 deletions examples/external-stage/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1 @@
pluginManagement {
repositories {
maven {
url "s3://stewartbryson.maven"
authentication {
awsIm(AwsImAuthentication)
}
}
gradlePluginPortal()
}
}
rootProject.name = 'external-stage'
11 changes: 0 additions & 11 deletions examples/internal-stage/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1 @@
pluginManagement {
repositories {
maven {
url "s3://stewartbryson.maven"
authentication {
awsIm(AwsImAuthentication)
}
}
gradlePluginPortal()
}
}
rootProject.name = 'internal-stage'
18 changes: 4 additions & 14 deletions plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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

0 comments on commit ef48614

Please sign in to comment.