From 64c0f3eb575eb126bbacc2a60bc1b02cd814cc67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20August=C3=BDn?= Date: Sun, 18 Apr 2021 22:12:19 +0200 Subject: [PATCH] first commit after forking --- .github/workflows/build.yml | 18 +++ .github/workflows/release.yml | 27 ++++ Dockerfile | 9 -- README.md | 6 +- build.gradle | 140 ++++++++++-------- gradle/wrapper/gradle-wrapper.properties | 2 +- renovate.json | 5 + .../gradle/scalafmt/ConfigFactory.groovy | 2 +- .../gradle/scalafmt/PluginExtension.groovy | 2 +- .../gradle/scalafmt/ScalafmtCheckTask.groovy | 2 +- .../gradle/scalafmt/ScalafmtFormatBase.groovy | 2 +- .../scalafmt/ScalafmtFormatException.groovy | 2 +- .../gradle/scalafmt/ScalafmtPlugin.groovy | 2 +- .../gradle/scalafmt/ScalafmtTask.groovy | 2 +- .../cz.alenkacz.gradle.scalafmt.properties | 2 +- .../gradle-plugins/scalafmt.properties | 2 +- .../gradle/scalafmt/ProjectMother.groovy | 8 +- .../scalafmt/ScalafmtCheckTaskTest.groovy | 6 +- .../gradle/scalafmt/ScalafmtPluginTest.groovy | 2 +- .../gradle/scalafmt/ScalafmtTaskTest.groovy | 2 +- .../gradle/scalafmt/TestProject.groovy | 2 +- 21 files changed, 150 insertions(+), 95 deletions(-) create mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/release.yml delete mode 100644 Dockerfile create mode 100644 renovate.json rename src/main/groovy/cz/{alenkacz => augi}/gradle/scalafmt/ConfigFactory.groovy (94%) rename src/main/groovy/cz/{alenkacz => augi}/gradle/scalafmt/PluginExtension.groovy (66%) rename src/main/groovy/cz/{alenkacz => augi}/gradle/scalafmt/ScalafmtCheckTask.groovy (85%) rename src/main/groovy/cz/{alenkacz => augi}/gradle/scalafmt/ScalafmtFormatBase.groovy (98%) rename src/main/groovy/cz/{alenkacz => augi}/gradle/scalafmt/ScalafmtFormatException.groovy (86%) rename src/main/groovy/cz/{alenkacz => augi}/gradle/scalafmt/ScalafmtPlugin.groovy (97%) rename src/main/groovy/cz/{alenkacz => augi}/gradle/scalafmt/ScalafmtTask.groovy (85%) rename src/test/groovy/cz/{alenkacz => augi}/gradle/scalafmt/ProjectMother.groovy (94%) rename src/test/groovy/cz/{alenkacz => augi}/gradle/scalafmt/ScalafmtCheckTaskTest.groovy (94%) rename src/test/groovy/cz/{alenkacz => augi}/gradle/scalafmt/ScalafmtPluginTest.groovy (95%) rename src/test/groovy/cz/{alenkacz => augi}/gradle/scalafmt/ScalafmtTaskTest.groovy (98%) rename src/test/groovy/cz/{alenkacz => augi}/gradle/scalafmt/TestProject.groovy (92%) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..033c936 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,18 @@ +name: Build + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 1.8 + uses: actions/setup-java@v2 + with: + java-version: 8 + distribution: 'adopt' + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Check with Gradle + run: ./gradlew check --info diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..55746b9 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,27 @@ +name: Release +on: + release: + types: [published] +jobs: + build: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 1.8 + uses: actions/setup-java@v2 + with: + java-version: 8 + distribution: 'adopt' + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Check with Gradle + run: ./gradlew check --info -Pversion=${{ github.event.release.tag_name }} + - name: Publish with Gradle to Gradle Plugins portal + run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository publishPlugins --info -Pversion=${{ github.event.release.tag_name }} + env: + GRADLE_PORTAL_KEY: ${{ secrets.GRADLE_PORTAL_KEY }} + GRADLE_PORTAL_SECRET: ${{ secrets.GRADLE_PORTAL_SECRET }} + SIGNING_KEY: ${{ secrets.SIGNING_KEY }} + SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} + ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USERNAME }} + ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }} diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index d990c48..0000000 --- a/Dockerfile +++ /dev/null @@ -1,9 +0,0 @@ -# This is Dockerfile that defines build environment. -FROM java:8u111-jdk -MAINTAINER varkockova.a@gmail.com - -VOLUME /build -WORKDIR /build - -ENTRYPOINT ["/build/gradlew"] -CMD ["test"] \ No newline at end of file diff --git a/README.md b/README.md index d4435d4..dd7c1c0 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,4 @@ -# Scalafmt Gradle plugin - -[![Build Status](https://travis-ci.org/alenkacz/gradle-scalafmt.svg)](https://travis-ci.org/alenkacz/gradle-scalafmt) [ ![Download](https://api.bintray.com/packages/alenkacz/maven/gradle-scalafmt/images/download.svg) ](https://bintray.com/alenkacz/maven/gradle-scalafmt/_latestVersion) +# Gradle scalafmt plugin [![Build](https://github.com/augi/gradle-scalafmt/actions/workflows/build.yml/badge.svg)](https://github.com/augi/gradle-scalafmt/actions/workflows/build.yml) This plugin will allow you to format your scala code as a part of your build process. In the background, it uses [scalafmt](https://github.com/scalameta/scalafmt) library. @@ -12,7 +10,7 @@ Usage ==================== plugins { - id 'cz.alenkacz.gradle.scalafmt' version '$latestVersion' + id 'cz.augi.gradle.scalafmt' version 'putCurrentVersionHere' } scalafmt { diff --git a/build.gradle b/build.gradle index 2f93703..e14a14b 100644 --- a/build.gradle +++ b/build.gradle @@ -1,88 +1,104 @@ -buildscript { - repositories { - jcenter() - maven { - url "https://plugins.gradle.org/m2/" - } - } - dependencies { - classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4' - classpath 'com.gradle.publish:plugin-publish-plugin:0.14.0' - } -} - plugins { - id 'net.researchgate.release' version '2.8.1' + id 'groovy' + id 'maven-publish' + id 'java-gradle-plugin' + id 'signing' + id 'io.github.gradle-nexus.publish-plugin' version '1.0.0' + id 'com.gradle.plugin-publish' version '0.14.0' } -group 'cz.alenkacz' +group 'cz.augi' version = version == 'unspecified' ? 'DEVELOPER-SNAPSHOT' : version -apply plugin: 'groovy' -apply plugin: 'java' -apply plugin: 'maven' -apply plugin: 'com.jfrog.bintray' -apply plugin: 'com.gradle.plugin-publish' - repositories { - jcenter() + mavenCentral() } dependencies { - compile gradleApi() - compile 'org.scalameta:scalafmt-dynamic_2.12:2.7.5' - compile 'org.scala-lang.modules:scala-xml_2.12:1.3.0' - - testCompile 'junit:junit:4.13' - testCompile gradleTestKit() - testCompile ('org.spockframework:spock-core:1.3-groovy-2.4') { + api gradleApi() + api 'org.scalameta:scalafmt-dynamic_2.12:2.7.5' + api 'org.scala-lang.modules:scala-xml_2.12:1.3.0' + + testImplementation 'junit:junit:4.13.2' + testImplementation gradleTestKit() + testImplementation ('org.spockframework:spock-core:2.0-M5-groovy-3.0') { exclude group:'org.codehaus.groovy' } +} +test { + useJUnitPlatform() + testLogging { + events 'failed' + exceptionFormat 'full' + } } -task sourcesJar(type: Jar) { - from sourceSets.main.allSource - archiveClassifier = 'sources' +sourceCompatibility = JavaVersion.VERSION_1_8 + +project.ext.set('gradle.publish.key', System.getenv('GRADLE_PORTAL_KEY')) +project.ext.set('gradle.publish.secret', System.getenv('GRADLE_PORTAL_SECRET')) +pluginBundle { + website = 'https://github.com/augi/gradle-scalafmt' + vcsUrl = 'https://github.com/augi/gradle-scalafmt' + description = 'Gradle plugin to apply scalafmt (Scala linting tool)' + tags = ['gradle', 'scala', 'scalafmt'] + + plugins { + wartremoverPlugin { + id = 'cz.augi.gradle.scalafmt' + displayName = 'Gradle scalafmt plugin' + } + } } -artifacts { - archives sourcesJar + +java { + withJavadocJar() + withSourcesJar() } -bintray { - user = System.getenv('BINTRAY_USER') - key = System.getenv('BINTRAY_KEY') - configurations = ['archives'] - publish = true - pkg { - repo = 'maven' - name = 'gradle-scalafmt' - desc = 'Gradle plugin that can run scalafmt as a part of your build.' - licenses = ['MIT'] - vcsUrl = 'https://github.com/alenkacz/gradle-scalafmt.git' - websiteUrl = 'https://github.com/alenkacz/gradle-scalafmt' - issueTrackerUrl = 'https://github.com/alenkacz/gradle-scalafmt/issues' - labels = ['scala', 'scalafmt', 'formatting'] - version { - name = project.version - vcsTag = project.version +afterEvaluate { + publishing.publications.forEach { + it.pom { + name = 'Gradle scalafmt Plugin' + description = 'Gradle plugin to apply scalafmt (Scala linting tool)' + url = 'https://github.com/augi/gradle-scalafmt' + licenses { + license { + name = 'The MIT License' + url = 'http://www.opensource.org/licenses/mit-license.php' + } + } + developers { + developer { + id = 'augi' + name = 'Michal Augustýn' + email = 'augustyn.michal@gmail.com' + } + } + scm { + connection = 'scm:git:git://github.com/augi/gradle-scalafmt.git' + developerConnection = 'scm:git:ssh://github.com/augi/gradle-scalafmt.git' + url = 'https://github.com/augi/gradle-scalafmt' + } } } } -project.ext.set('gradle.publish.key', System.getenv('GRADLE_PORTAL_KEY')) -project.ext.set('gradle.publish.secret', System.getenv('GRADLE_PORTAL_SECRET')) -pluginBundle { - website = 'https://github.com/alenkacz/gradle-scalafmt' - vcsUrl = 'https://github.com/alenkacz/gradle-scalafmt' - description = 'Gradle plugin that can run scalafmt as a part of your build.' - tags = ['scalafmt', 'scala', "formatting"] +signing { + String base64Key = System.getenv('SIGNING_KEY') + if (base64Key) { + useInMemoryPgpKeys(new String(Base64.decoder.decode(base64Key)), System.getenv('SIGNING_PASSWORD')) + sign publishing.publications + } +} - plugins { - scalafmtPlugin { - id = 'cz.alenkacz.gradle.scalafmt' - displayName = 'Gradle Scalafmt plugin' +nexusPublishing { + repositories { + sonatype { + nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/")) + snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")) } } } diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 68ca99a..f2e1eb1 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-bin.zip diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..f45d8f1 --- /dev/null +++ b/renovate.json @@ -0,0 +1,5 @@ +{ + "extends": [ + "config:base" + ] +} diff --git a/src/main/groovy/cz/alenkacz/gradle/scalafmt/ConfigFactory.groovy b/src/main/groovy/cz/augi/gradle/scalafmt/ConfigFactory.groovy similarity index 94% rename from src/main/groovy/cz/alenkacz/gradle/scalafmt/ConfigFactory.groovy rename to src/main/groovy/cz/augi/gradle/scalafmt/ConfigFactory.groovy index 54140b4..fbafba1 100644 --- a/src/main/groovy/cz/alenkacz/gradle/scalafmt/ConfigFactory.groovy +++ b/src/main/groovy/cz/augi/gradle/scalafmt/ConfigFactory.groovy @@ -1,4 +1,4 @@ -package cz.alenkacz.gradle.scalafmt +package cz.augi.gradle.scalafmt import org.gradle.api.Project import org.gradle.api.logging.Logger diff --git a/src/main/groovy/cz/alenkacz/gradle/scalafmt/PluginExtension.groovy b/src/main/groovy/cz/augi/gradle/scalafmt/PluginExtension.groovy similarity index 66% rename from src/main/groovy/cz/alenkacz/gradle/scalafmt/PluginExtension.groovy rename to src/main/groovy/cz/augi/gradle/scalafmt/PluginExtension.groovy index c320ca7..6b7f9fb 100644 --- a/src/main/groovy/cz/alenkacz/gradle/scalafmt/PluginExtension.groovy +++ b/src/main/groovy/cz/augi/gradle/scalafmt/PluginExtension.groovy @@ -1,4 +1,4 @@ -package cz.alenkacz.gradle.scalafmt +package cz.augi.gradle.scalafmt class PluginExtension { String configFilePath = ".scalafmt.conf" diff --git a/src/main/groovy/cz/alenkacz/gradle/scalafmt/ScalafmtCheckTask.groovy b/src/main/groovy/cz/augi/gradle/scalafmt/ScalafmtCheckTask.groovy similarity index 85% rename from src/main/groovy/cz/alenkacz/gradle/scalafmt/ScalafmtCheckTask.groovy rename to src/main/groovy/cz/augi/gradle/scalafmt/ScalafmtCheckTask.groovy index ef9249e..02b6698 100644 --- a/src/main/groovy/cz/alenkacz/gradle/scalafmt/ScalafmtCheckTask.groovy +++ b/src/main/groovy/cz/augi/gradle/scalafmt/ScalafmtCheckTask.groovy @@ -1,4 +1,4 @@ -package cz.alenkacz.gradle.scalafmt +package cz.augi.gradle.scalafmt import org.gradle.api.tasks.CacheableTask import org.gradle.api.tasks.TaskAction diff --git a/src/main/groovy/cz/alenkacz/gradle/scalafmt/ScalafmtFormatBase.groovy b/src/main/groovy/cz/augi/gradle/scalafmt/ScalafmtFormatBase.groovy similarity index 98% rename from src/main/groovy/cz/alenkacz/gradle/scalafmt/ScalafmtFormatBase.groovy rename to src/main/groovy/cz/augi/gradle/scalafmt/ScalafmtFormatBase.groovy index 9ff6f28..4ffdc14 100644 --- a/src/main/groovy/cz/alenkacz/gradle/scalafmt/ScalafmtFormatBase.groovy +++ b/src/main/groovy/cz/augi/gradle/scalafmt/ScalafmtFormatBase.groovy @@ -1,4 +1,4 @@ -package cz.alenkacz.gradle.scalafmt +package cz.augi.gradle.scalafmt import org.gradle.api.DefaultTask import org.gradle.api.plugins.JavaBasePlugin diff --git a/src/main/groovy/cz/alenkacz/gradle/scalafmt/ScalafmtFormatException.groovy b/src/main/groovy/cz/augi/gradle/scalafmt/ScalafmtFormatException.groovy similarity index 86% rename from src/main/groovy/cz/alenkacz/gradle/scalafmt/ScalafmtFormatException.groovy rename to src/main/groovy/cz/augi/gradle/scalafmt/ScalafmtFormatException.groovy index 069298c..13bc79e 100644 --- a/src/main/groovy/cz/alenkacz/gradle/scalafmt/ScalafmtFormatException.groovy +++ b/src/main/groovy/cz/augi/gradle/scalafmt/ScalafmtFormatException.groovy @@ -1,4 +1,4 @@ -package cz.alenkacz.gradle.scalafmt +package cz.augi.gradle.scalafmt import org.gradle.api.GradleException diff --git a/src/main/groovy/cz/alenkacz/gradle/scalafmt/ScalafmtPlugin.groovy b/src/main/groovy/cz/augi/gradle/scalafmt/ScalafmtPlugin.groovy similarity index 97% rename from src/main/groovy/cz/alenkacz/gradle/scalafmt/ScalafmtPlugin.groovy rename to src/main/groovy/cz/augi/gradle/scalafmt/ScalafmtPlugin.groovy index 4b53013..d34384e 100644 --- a/src/main/groovy/cz/alenkacz/gradle/scalafmt/ScalafmtPlugin.groovy +++ b/src/main/groovy/cz/augi/gradle/scalafmt/ScalafmtPlugin.groovy @@ -1,4 +1,4 @@ -package cz.alenkacz.gradle.scalafmt +package cz.augi.gradle.scalafmt import org.gradle.api.Plugin import org.gradle.api.Project diff --git a/src/main/groovy/cz/alenkacz/gradle/scalafmt/ScalafmtTask.groovy b/src/main/groovy/cz/augi/gradle/scalafmt/ScalafmtTask.groovy similarity index 85% rename from src/main/groovy/cz/alenkacz/gradle/scalafmt/ScalafmtTask.groovy rename to src/main/groovy/cz/augi/gradle/scalafmt/ScalafmtTask.groovy index 49f2795..51a7e41 100644 --- a/src/main/groovy/cz/alenkacz/gradle/scalafmt/ScalafmtTask.groovy +++ b/src/main/groovy/cz/augi/gradle/scalafmt/ScalafmtTask.groovy @@ -1,4 +1,4 @@ -package cz.alenkacz.gradle.scalafmt +package cz.augi.gradle.scalafmt import org.gradle.api.tasks.CacheableTask import org.gradle.api.tasks.TaskAction diff --git a/src/main/resources/META-INF/gradle-plugins/cz.alenkacz.gradle.scalafmt.properties b/src/main/resources/META-INF/gradle-plugins/cz.alenkacz.gradle.scalafmt.properties index 535b030..3855dd2 100644 --- a/src/main/resources/META-INF/gradle-plugins/cz.alenkacz.gradle.scalafmt.properties +++ b/src/main/resources/META-INF/gradle-plugins/cz.alenkacz.gradle.scalafmt.properties @@ -1 +1 @@ -implementation-class=cz.alenkacz.gradle.scalafmt.ScalafmtPlugin \ No newline at end of file +implementation-class=cz.augi.gradle.scalafmt.ScalafmtPlugin \ No newline at end of file diff --git a/src/main/resources/META-INF/gradle-plugins/scalafmt.properties b/src/main/resources/META-INF/gradle-plugins/scalafmt.properties index 535b030..3855dd2 100644 --- a/src/main/resources/META-INF/gradle-plugins/scalafmt.properties +++ b/src/main/resources/META-INF/gradle-plugins/scalafmt.properties @@ -1 +1 @@ -implementation-class=cz.alenkacz.gradle.scalafmt.ScalafmtPlugin \ No newline at end of file +implementation-class=cz.augi.gradle.scalafmt.ScalafmtPlugin \ No newline at end of file diff --git a/src/test/groovy/cz/alenkacz/gradle/scalafmt/ProjectMother.groovy b/src/test/groovy/cz/augi/gradle/scalafmt/ProjectMother.groovy similarity index 94% rename from src/test/groovy/cz/alenkacz/gradle/scalafmt/ProjectMother.groovy rename to src/test/groovy/cz/augi/gradle/scalafmt/ProjectMother.groovy index a7bbe6b..a99ae28 100644 --- a/src/test/groovy/cz/alenkacz/gradle/scalafmt/ProjectMother.groovy +++ b/src/test/groovy/cz/augi/gradle/scalafmt/ProjectMother.groovy @@ -1,4 +1,4 @@ -package cz.alenkacz.gradle.scalafmt +package cz.augi.gradle.scalafmt import java.nio.file.Files import java.nio.file.Paths @@ -58,7 +58,7 @@ class ProjectMother { configFile(absoluteFile.toString()) def srcFile = Files.createFile(Paths.get(srcFolder.absolutePath, "Test.scala")) srcFile.write """import java.nio.file.{Paths, Files} - |object Test { foo(a, "src/test/scala/cz/alenkacz/gradle/scalafmt/test", "src/test/scala/cz/alenkacz/gradle/scalafmt/test", "src/test/scala/cz/alenkacz/gradle/scalafmt/test" + |object Test { foo(a, "src/test/scala/cz/augi/gradle/scalafmt/test", "src/test/scala/cz/augi/gradle/scalafmt/test", "src/test/scala/cz/augi/gradle/scalafmt/test" | b)} """.stripMargin() testProject = new TestProject(absoluteFile, srcFile.toFile()) @@ -84,8 +84,8 @@ class ProjectMother { |object Test { foo(a, // comment | b)} """.stripMargin() - private static def sourceFilePath = "src/main/scala/cz/alenkacz/gradle/scalafmt/test" - private static def testSourceFilePath = "src/test/scala/cz/alenkacz/gradle/scalafmt/test" + private static def sourceFilePath = "src/main/scala/cz/augi/gradle/scalafmt/test" + private static def testSourceFilePath = "src/test/scala/cz/augi/gradle/scalafmt/test" static def projectWithConfig() { TestProject testProject = null diff --git a/src/test/groovy/cz/alenkacz/gradle/scalafmt/ScalafmtCheckTaskTest.groovy b/src/test/groovy/cz/augi/gradle/scalafmt/ScalafmtCheckTaskTest.groovy similarity index 94% rename from src/test/groovy/cz/alenkacz/gradle/scalafmt/ScalafmtCheckTaskTest.groovy rename to src/test/groovy/cz/augi/gradle/scalafmt/ScalafmtCheckTaskTest.groovy index d78d7b1..1c365dc 100644 --- a/src/test/groovy/cz/alenkacz/gradle/scalafmt/ScalafmtCheckTaskTest.groovy +++ b/src/test/groovy/cz/augi/gradle/scalafmt/ScalafmtCheckTaskTest.groovy @@ -1,6 +1,6 @@ -package cz.alenkacz.gradle.scalafmt +package cz.augi.gradle.scalafmt + -import org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration import org.gradle.testfixtures.ProjectBuilder import spock.lang.Specification @@ -86,7 +86,7 @@ class ScalafmtCheckTaskTest extends Specification { mavenCentral() } project.dependencies { - compile 'org.scala-lang:scala-library:2.12.10' + implementation 'org.scala-lang:scala-library:2.12.10' } when: diff --git a/src/test/groovy/cz/alenkacz/gradle/scalafmt/ScalafmtPluginTest.groovy b/src/test/groovy/cz/augi/gradle/scalafmt/ScalafmtPluginTest.groovy similarity index 95% rename from src/test/groovy/cz/alenkacz/gradle/scalafmt/ScalafmtPluginTest.groovy rename to src/test/groovy/cz/augi/gradle/scalafmt/ScalafmtPluginTest.groovy index 1869c4e..069ecf5 100644 --- a/src/test/groovy/cz/alenkacz/gradle/scalafmt/ScalafmtPluginTest.groovy +++ b/src/test/groovy/cz/augi/gradle/scalafmt/ScalafmtPluginTest.groovy @@ -1,4 +1,4 @@ -package cz.alenkacz.gradle.scalafmt +package cz.augi.gradle.scalafmt import org.gradle.api.Project import org.gradle.api.Task diff --git a/src/test/groovy/cz/alenkacz/gradle/scalafmt/ScalafmtTaskTest.groovy b/src/test/groovy/cz/augi/gradle/scalafmt/ScalafmtTaskTest.groovy similarity index 98% rename from src/test/groovy/cz/alenkacz/gradle/scalafmt/ScalafmtTaskTest.groovy rename to src/test/groovy/cz/augi/gradle/scalafmt/ScalafmtTaskTest.groovy index b276c31..58b76cf 100644 --- a/src/test/groovy/cz/alenkacz/gradle/scalafmt/ScalafmtTaskTest.groovy +++ b/src/test/groovy/cz/augi/gradle/scalafmt/ScalafmtTaskTest.groovy @@ -1,4 +1,4 @@ -package cz.alenkacz.gradle.scalafmt +package cz.augi.gradle.scalafmt import org.gradle.api.Task import org.gradle.testfixtures.ProjectBuilder diff --git a/src/test/groovy/cz/alenkacz/gradle/scalafmt/TestProject.groovy b/src/test/groovy/cz/augi/gradle/scalafmt/TestProject.groovy similarity index 92% rename from src/test/groovy/cz/alenkacz/gradle/scalafmt/TestProject.groovy rename to src/test/groovy/cz/augi/gradle/scalafmt/TestProject.groovy index d47d45f..c9f3bb7 100644 --- a/src/test/groovy/cz/alenkacz/gradle/scalafmt/TestProject.groovy +++ b/src/test/groovy/cz/augi/gradle/scalafmt/TestProject.groovy @@ -1,4 +1,4 @@ -package cz.alenkacz.gradle.scalafmt +package cz.augi.gradle.scalafmt class TestProject { private File projectRoot