Fix same version reporting as out-of-date

dependabot/gradle/net.kyori-adventure-api-4.14.0 1.1.1
William278 2 years ago
parent b9721e5d64
commit aea4520277

@ -18,9 +18,7 @@ permissions:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Set up JDK 11 - name: Set up JDK 11

@ -4,9 +4,11 @@
<component name="GradleSettings"> <component name="GradleSettings">
<option name="linkedExternalProjectsSettings"> <option name="linkedExternalProjectsSettings">
<GradleProjectSettings> <GradleProjectSettings>
<option name="delegatedBuild" value="true" />
<option name="testRunner" value="GRADLE" />
<option name="distributionType" value="DEFAULT_WRAPPED" /> <option name="distributionType" value="DEFAULT_WRAPPED" />
<option name="externalProjectPath" value="$PROJECT_DIR$" /> <option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="gradleHome" value="$PROJECT_DIR$/../../../../Gradle/gradle-7.2" /> <option name="gradleJvm" value="corretto-11" />
<option name="modules"> <option name="modules">
<set> <set>
<option value="$PROJECT_DIR$" /> <option value="$PROJECT_DIR$" />

@ -4,11 +4,12 @@
<option name="autoReloadType" value="SELECTIVE" /> <option name="autoReloadType" value="SELECTIVE" />
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="9a02c230-5b64-4687-85e4-aeee92a12593" name="Changes" comment="Update README.md"> <list default="true" id="9a02c230-5b64-4687-85e4-aeee92a12593" name="Changes" comment="Fix same version reporting as out-of-date">
<change beforePath="$PROJECT_DIR$/.github/workflows/gradle-ci.yml" beforeDir="false" afterPath="$PROJECT_DIR$/.github/workflows/gradle-ci.yml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/gradle.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/gradle.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/gradle.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/gradle.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/build.gradle" beforeDir="false" afterPath="$PROJECT_DIR$/build.gradle" afterDir="false" /> <change beforePath="$PROJECT_DIR$/build.gradle" beforeDir="false" afterPath="$PROJECT_DIR$/build.gradle" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/net/william278/desertwell/AboutMenu.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/net/william278/desertwell/AboutMenu.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/main/java/net/william278/desertwell/UpdateChecker.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/net/william278/desertwell/UpdateChecker.java" afterDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
@ -49,16 +50,22 @@
<option name="hideEmptyMiddlePackages" value="true" /> <option name="hideEmptyMiddlePackages" value="true" />
<option name="showLibraryContents" value="true" /> <option name="showLibraryContents" value="true" />
</component> </component>
<component name="PropertiesComponent">{ <component name="PropertiesComponent"><![CDATA[{
&quot;keyToString&quot;: { "keyToString": {
&quot;RunOnceActivity.OpenProjectViewOnStart&quot;: &quot;true&quot;, "RunOnceActivity.OpenProjectViewOnStart": "true",
&quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;, "RunOnceActivity.ShowReadmeOnStart": "true",
&quot;SHARE_PROJECT_CONFIGURATION_FILES&quot;: &quot;true&quot;, "SHARE_PROJECT_CONFIGURATION_FILES": "true",
&quot;WebServerToolWindowFactoryState&quot;: &quot;false&quot;, "WebServerToolWindowFactoryState": "false",
&quot;last_opened_file_path&quot;: &quot;C:/Users/William/IdeaProjects/DesertWell/src/main/java/net/william278/desertwell&quot;, "last_opened_file_path": "C:/Users/William/IdeaProjects/DesertWell/src/main/java/net/william278/desertwell",
&quot;nodejs_package_manager_path&quot;: &quot;npm&quot; "node.js.detected.package.eslint": "true",
"node.js.detected.package.tslint": "true",
"node.js.selected.package.eslint": "(autodetect)",
"node.js.selected.package.tslint": "(autodetect)",
"nodejs_package_manager_path": "npm",
"settings.editor.selected.configurable": "reference.settingsdialog.project.gradle",
"vue.rearranger.settings.migration": "true"
} }
}</component> }]]></component>
<component name="RecentsManager"> <component name="RecentsManager">
<key name="CopyFile.RECENT_KEYS"> <key name="CopyFile.RECENT_KEYS">
<recent name="C:\Users\William\IdeaProjects\DesertWell\src\main\java\net\william278\desertwell" /> <recent name="C:\Users\William\IdeaProjects\DesertWell\src\main\java\net\william278\desertwell" />
@ -67,8 +74,8 @@
<recent name="net.william278.desertwell" /> <recent name="net.william278.desertwell" />
</key> </key>
</component> </component>
<component name="RunManager" selected="Gradle.UpdateCheckerTests"> <component name="RunManager" selected="Gradle.DesertWell [build]">
<configuration name="UpdateCheckerTests" type="GradleRunConfiguration" factoryName="Gradle" temporary="true"> <configuration name="DesertWell [build]" type="GradleRunConfiguration" factoryName="Gradle" nameIsGenerated="true">
<ExternalSystemSettings> <ExternalSystemSettings>
<option name="executionName" /> <option name="executionName" />
<option name="externalProjectPath" value="$PROJECT_DIR$" /> <option name="externalProjectPath" value="$PROJECT_DIR$" />
@ -79,42 +86,17 @@
</option> </option>
<option name="taskNames"> <option name="taskNames">
<list> <list>
<option value=":test" /> <option value="build" />
<option value="--tests" />
<option value="&quot;net.william278.desertwell.UpdateCheckerTests&quot;" />
</list>
</option>
<option name="vmOptions" />
</ExternalSystemSettings>
<ExternalSystemDebugServerProcess>false</ExternalSystemDebugServerProcess>
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
<DebugAllEnabled>false</DebugAllEnabled>
<method v="2" />
</configuration>
<configuration name="UpdateCheckerTests.testUpdateChecker" type="GradleRunConfiguration" factoryName="Gradle" temporary="true">
<ExternalSystemSettings>
<option name="executionName" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="externalSystemIdString" value="GRADLE" />
<option name="scriptParameters" value="" />
<option name="taskDescriptions">
<list />
</option>
<option name="taskNames">
<list>
<option value=":test" />
<option value="--tests" />
<option value="&quot;net.william278.desertwell.UpdateCheckerTests.testUpdateChecker&quot;" />
</list> </list>
</option> </option>
<option name="vmOptions" /> <option name="vmOptions" />
</ExternalSystemSettings> </ExternalSystemSettings>
<ExternalSystemDebugServerProcess>false</ExternalSystemDebugServerProcess> <ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess> <ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
<DebugAllEnabled>false</DebugAllEnabled> <DebugAllEnabled>false</DebugAllEnabled>
<method v="2" /> <method v="2" />
</configuration> </configuration>
<configuration name="VersionTests" type="GradleRunConfiguration" factoryName="Gradle" temporary="true"> <configuration name="Run Tests" type="GradleRunConfiguration" factoryName="Gradle" temporary="true">
<ExternalSystemSettings> <ExternalSystemSettings>
<option name="executionName" /> <option name="executionName" />
<option name="externalProjectPath" value="$PROJECT_DIR$" /> <option name="externalProjectPath" value="$PROJECT_DIR$" />
@ -126,8 +108,6 @@
<option name="taskNames"> <option name="taskNames">
<list> <list>
<option value=":test" /> <option value=":test" />
<option value="--tests" />
<option value="&quot;net.william278.desertwell.VersionTests&quot;" />
</list> </list>
</option> </option>
<option name="vmOptions" /> <option name="vmOptions" />
@ -138,15 +118,12 @@
<method v="2" /> <method v="2" />
</configuration> </configuration>
<list> <list>
<item itemvalue="Gradle.UpdateCheckerTests" /> <item itemvalue="Gradle.DesertWell [build]" />
<item itemvalue="Gradle.UpdateCheckerTests.testUpdateChecker" /> <item itemvalue="Gradle.Run Tests" />
<item itemvalue="Gradle.VersionTests" />
</list> </list>
<recent_temporary> <recent_temporary>
<list> <list>
<item itemvalue="Gradle.UpdateCheckerTests.testUpdateChecker" /> <item itemvalue="Gradle.Run Tests" />
<item itemvalue="Gradle.UpdateCheckerTests" />
<item itemvalue="Gradle.VersionTests" />
</list> </list>
</recent_temporary> </recent_temporary>
</component> </component>
@ -160,6 +137,7 @@
<updated>1661334712505</updated> <updated>1661334712505</updated>
<workItem from="1661334713968" duration="5169000" /> <workItem from="1661334713968" duration="5169000" />
<workItem from="1663673884544" duration="72000" /> <workItem from="1663673884544" duration="72000" />
<workItem from="1677237222251" duration="636000" />
</task> </task>
<task id="LOCAL-00001" summary="Initial commit"> <task id="LOCAL-00001" summary="Initial commit">
<created>1661342956453</created> <created>1661342956453</created>
@ -195,6 +173,7 @@
<component name="VcsManagerConfiguration"> <component name="VcsManagerConfiguration">
<MESSAGE value="Initial commit" /> <MESSAGE value="Initial commit" />
<MESSAGE value="Update README.md" /> <MESSAGE value="Update README.md" />
<option name="LAST_COMMIT_MESSAGE" value="Update README.md" /> <MESSAGE value="Fix same version reporting as out-of-date" />
<option name="LAST_COMMIT_MESSAGE" value="Fix same version reporting as out-of-date" />
</component> </component>
</project> </project>

@ -1,10 +1,11 @@
plugins { plugins {
id 'java' id 'java'
id 'maven-publish' id 'maven-publish'
id 'com.github.johnrengelman.shadow' version '6.1.0'
} }
group 'net.william278' group 'net.william278'
version '1.1' version '1.1.1'
repositories { repositories {
mavenCentral() mavenCentral()

@ -74,7 +74,7 @@ public class UpdateChecker {
* @return A {@link CompletableFuture} containing true if the current plugin {@link Version} is outdated * @return A {@link CompletableFuture} containing true if the current plugin {@link Version} is outdated
*/ */
public CompletableFuture<Boolean> isUpToDate() { public CompletableFuture<Boolean> isUpToDate() {
return getLatestVersion().thenApply(latestVersion -> currentVersion.compareTo(latestVersion) > 0); return getLatestVersion().thenApply(latestVersion -> currentVersion.compareTo(latestVersion) >= 0);
} }
} }
Loading…
Cancel
Save