Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
djice authored and Jabouille Jean Charles committed Mar 5, 2021
1 parent 9d575df commit 696b206
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 8 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Release
on:
push:
branches: [master, main]
tags: ["*"]
jobs:
publish:
runs-on: ubuntu-20.04
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- uses: olafurpg/setup-scala@v10
- uses: olafurpg/setup-gpg@v3
- run: sbt ci-release
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
31 changes: 28 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,31 @@
organization := "io.github.djice"
import sbt.util

logLevel := util.Level.Debug

name := "sbt-unzip"
description := "Unzip dependencies"
enablePlugins(JavaAppPackaging)
enablePlugins(SbtPlugin)
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.8.0")

lazy val core = project.settings(
name := "sbt-unzip",
crossScalaVersions := List("2.13.5", "2.12.13", "2.11.12")
)



inThisBuild(
Seq(
name := "sbt-unzip",
organization := "io.github.djice",
homepage := Some(url("https://github.com/djice/sbt-unzip-plugin")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
developers := List(
Developer(
"djice",
"JABOUILLE Jean Charles",
"[email protected]",
url("https://github.com/djice")
)
)
)
)
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.8.0")
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.5")
2 changes: 1 addition & 1 deletion project/scripted.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
libraryDependencies += { "org.scala-sbt" % "scripted-plugin_2.12" % sbtVersion.value }
libraryDependencies += { "org.scala-sbt" %% "scripted-plugin" % sbtVersion.value }
2 changes: 0 additions & 2 deletions src/main/scala/com/typesafe/sbt/unzip/UnzipPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,8 @@ object UnzipPlugin extends AutoPlugin {
cReport.modules.foreach { mReport =>
val exclusionRule = ExclusionRule(mReport.module.organization, mReport.module.name)
if(!dependenciesToExcludeOfUnzipList.contains(exclusionRule)) {
log.info(mReport.module.toString())
mReport.artifacts.foreach { artifact =>
val artifactFile = artifact._2
log.info(artifact.toString())
if (artifactFile.name.endsWith(".zip")) {
log.info(s"Unpacking ${mReport.module.name} bundle: ${artifactFile.getAbsolutePath} in ${filePathToExtract}")
IO.unzip(artifactFile, filePathToExtract)
Expand Down
1 change: 0 additions & 1 deletion version.sbt

This file was deleted.

0 comments on commit 696b206

Please sign in to comment.