Skip to content

Commit

Permalink
Update net.wooga.plugins to version 3.x (#151)
Browse files Browse the repository at this point in the history
Description
===========

This update will bring the plugin `net.wooga.plugins` to
version `3.x`. With this change the groupname of the gradle
plugin will change during publish so I thought it might be
a good idea to change the project name as well so the groupname
won't include the `atlas` name.

The old groupname `gradle.plugin.net.wooga.gradle:atlas-unity`
would become `net.wooga.gradle:unity`.

This patch also includes all changes needed for the new
plugin metadata description.

Changes
=======

* ![UPDATE] `net.wooga.plugins` to version `3.x` range
* ![CHANGE] project name and remove `atlas` term
* ![IMPROVE] plugin publish metadata
  • Loading branch information
Larusso committed May 3, 2022
1 parent d4ab498 commit 9003ab4
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 24 deletions.
9 changes: 4 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/

plugins {
id 'net.wooga.plugins' version '2.3.0'
id 'net.wooga.plugins' version '3.2.0'
id 'net.wooga.snyk' version '0.10.0'
id "net.wooga.snyk-gradle-plugin" version "0.2.0"
id "net.wooga.cve-dependency-resolution" version "0.4.0"
Expand All @@ -29,12 +29,15 @@ pluginBundle {
website = 'https://wooga.github.io/atlas-unity/'
vcsUrl = 'https://github.com/wooga/atlas-unity'
tags = ['Unity3D']
}

gradlePlugin {
plugins {
unity {
id = 'net.wooga.unity'
displayName = 'Gradle Unity plugin'
description = 'This plugin provides tasks for working with Unity3D projects'
implementationClass = 'wooga.gradle.unity.UnityPlugin'
}
}
}
Expand All @@ -48,7 +51,6 @@ github {
}

dependencies {

implementation 'com.wooga.gradle:gradle-commons:[1,2['
implementation 'org.apache.maven:maven-artifact:3.8.5'
implementation "org.yaml:snakeyaml:1.30"
Expand All @@ -59,7 +61,4 @@ dependencies {
}

testImplementation("com.wooga.spock.extensions:spock-unity-version-manager-extension:0.3.0")

testImplementation 'com.github.stefanbirkner:system-rules:[1.18['

}
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ pluginManagement {
}
}

rootProject.name = 'atlas-unity'
rootProject.name = 'unity'
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package wooga.gradle.unity.tasks
import org.gradle.api.DefaultTask
import org.gradle.api.provider.MapProperty
import org.gradle.api.specs.Spec
import org.gradle.api.tasks.Internal
import org.gradle.api.tasks.TaskAction
import wooga.gradle.unity.models.APICompatibilityLevel
import wooga.gradle.unity.traits.APICompatibilityLevelSpec
Expand All @@ -30,6 +31,7 @@ class SetAPICompatibilityLevel extends DefaultTask implements APICompatibilityLe

private MapProperty<String, APICompatibilityLevel> previousAPICompatibilityLevel

@Internal
MapProperty<String, APICompatibilityLevel> getPreviousAPICompatibilityLevel(){
previousAPICompatibilityLevel
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ package wooga.gradle.unity.utils
import org.gradle.api.reporting.Report
import org.gradle.api.reporting.ReportContainer
import org.gradle.api.reporting.SingleFileReport
import org.gradle.api.tasks.Internal
import org.gradle.api.tasks.OutputFile

/**
* Container type for Unity test task result reports.
Expand All @@ -30,5 +32,6 @@ interface UnityTestTaskReport extends ReportContainer<Report>{
* Returns a {@link org.gradle.api.reporting.SingleFileReport} object.
* @return the xml report object.
*/
@Internal
SingleFileReport getXml()
}

This file was deleted.

0 comments on commit 9003ab4

Please sign in to comment.