Skip to content

Commit 7287a90

Browse files
authored
Perform reorg to org.wpilib (#40)
* Perform reorg to org.wpilib * Fix tests
1 parent f33c9c7 commit 7287a90

File tree

103 files changed

+267
-1934
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+267
-1934
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Check output
2222
run: git --no-pager diff --exit-code HEAD
2323
- name: Build Test
24-
run: ./gradlew build
24+
run: ../../gradlew build
2525
working-directory: testing/cpp
2626

2727
publish:

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Deploy to Embedded Targets in both Java and C++.
55
For all projects, you can define deployment targets and artifacts. The deploy process works over SSH/SFTP and
66
is extremely quick.
77

8-
For the previous functionality for native library building, see edu.wpi.first.NativeUtils
8+
For the previous functionality for native library building, see org.wpilib.NativeUtils
99

1010
Commands:
1111
`gradlew deploy` will deploy all artifacts
@@ -20,11 +20,11 @@ Properties:
2020
Include the following in your `build.gradle`
2121
```gradle
2222
plugins {
23-
id "edu.wpi.first.DeployUtils" version "<latest version>"
23+
id "org.wpilib.DeployUtils" version "<latest version>"
2424
}
2525
```
2626

27-
See [https://plugins.gradle.org/plugin/edu.wpi.first.DeployUtils](https://plugins.gradle.org/plugin/edu.first.wpi.DeployUtils) for the latest version
27+
See [https://plugins.gradle.org/plugin/org.wpilib.DeployUtils](https://plugins.gradle.org/plugin/org.wpilib.DeployUtils) for the latest version
2828

2929
## Spec
3030

build.gradle

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,25 @@ plugins {
88

99
repositories {
1010
maven {
11-
url "https://plugins.gradle.org/m2/"
11+
url = "https://plugins.gradle.org/m2/"
1212
}
1313
mavenLocal()
1414
mavenCentral()
1515
}
1616

1717
dependencies {
18-
api 'com.jcraft:jsch:0.1.55'
1918
api 'com.google.code.gson:gson:2.8.6'
2019

2120
api 'org.apache.sshd:sshd-core:2.13.2'
2221
api 'org.apache.sshd:sshd-sftp:2.13.2'
2322
implementation 'net.i2p.crypto:eddsa:0.3.0'
2423

25-
testImplementation('org.spockframework:spock-core:2.0-M4-groovy-3.0') {
24+
testImplementation('org.spockframework:spock-core:2.4-M6-groovy-4.0') {
2625
exclude group: 'org.codehaus.groovy'
2726
}
2827
testImplementation("org.junit.jupiter:junit-jupiter-api:5.7.1")
2928
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
30-
testImplementation('cglib:cglib-nodep:2.2')
31-
testImplementation('org.objenesis:objenesis:1.2')
29+
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
3230
testImplementation gradleTestKit()
3331
}
3432

@@ -41,8 +39,8 @@ buildScan {
4139
termsOfServiceAgree = 'yes'
4240
}
4341

44-
group = "edu.wpi.first"
45-
version = "2025.2.2"
42+
group = "org.wpilib"
43+
version = "2027.0.0"
4644

4745
base {
4846
archivesName = "DeployUtils"
@@ -58,9 +56,9 @@ gradlePlugin {
5856
vcsUrl = 'https://github.com/wpilibsuite/deploy-utils'
5957
plugins {
6058
DeployUtils {
61-
id = 'edu.wpi.first.DeployUtils'
59+
id = 'org.wpilib.DeployUtils'
6260
displayName = 'DeployUtils'
63-
implementationClass = 'edu.wpi.first.deployutils.DeployUtils'
61+
implementationClass = 'org.wpilib.deployutils.DeployUtils'
6462
description = 'Additions to the model-based DSL for deploying Java and Native projects to remote targets'
6563
tags = ['remote', 'target', 'deploy', 'java', 'native']
6664
}
@@ -80,14 +78,14 @@ def examplesFolder = file("$rootDir/testing")
8078

8179
tasks.register('PatchExamples') {
8280
doLast {
83-
String regex = "(id\\s*?[\\\"|\\']edu\\.wpi\\.first\\.DeployUtils[\\\"|\\'].*?version\\s*?[\\\"|\\'])(.+?)([\\\"|\\'])";
81+
String regex = "(id\\s*?[\\\"|\\']org\\.wpilib\\.DeployUtils[\\\"|\\'].*?version\\s*?[\\\"|\\'])(.+?)([\\\"|\\'])";
8482

8583
examplesFolder.eachFile { File file ->
8684
if (file.isDirectory() && file.name != '_archived') {
8785
def buildGradleFile = new File(file, 'build.gradle')
8886
if (buildGradleFile.exists() && buildGradleFile.isFile()) {
8987
def text = buildGradleFile.text
90-
text = text.replaceAll(regex, "id \"edu.wpi.first.DeployUtils\" version \"${version}\"")
88+
text = text.replaceAll(regex, "id \"org.wpilib.DeployUtils\" version \"${version}\"")
9189
buildGradleFile.text = text
9290
}
9391
}
@@ -99,6 +97,6 @@ build.dependsOn PatchExamples
9997
jar.finalizedBy PatchExamples
10098

10199
wrapper {
102-
gradleVersion = '8.10.2'
100+
gradleVersion = '9.2.0'
103101
distributionType = Wrapper.DistributionType.BIN
104102
}

gradle/wrapper/gradle-wrapper.jar

2 KB
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.0-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

33
#
4-
# Copyright © 2015-2021 the original authors.
4+
# Copyright © 2015 the original authors.
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.
@@ -86,8 +86,7 @@ done
8686
# shellcheck disable=SC2034
8787
APP_BASE_NAME=${0##*/}
8888
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
89-
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
90-
' "$PWD" ) || exit
89+
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
9190

9291
# Use the maximum available, or set MAX_FD != -1 to use that value.
9392
MAX_FD=maximum
@@ -115,7 +114,6 @@ case "$( uname )" in #(
115114
NONSTOP* ) nonstop=true ;;
116115
esac
117116

118-
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
119117

120118

121119
# Determine the Java command to use to start the JVM.
@@ -173,7 +171,6 @@ fi
173171
# For Cygwin or MSYS, switch paths to Windows format before running java
174172
if "$cygwin" || "$msys" ; then
175173
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
176-
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
177174

178175
JAVACMD=$( cygpath --unix "$JAVACMD" )
179176

@@ -206,15 +203,14 @@ fi
206203
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
207204

208205
# Collect all arguments for the java command:
209-
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
206+
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
210207
# and any embedded shellness will be escaped.
211208
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
212209
# treated as '${Hostname}' itself on the command line.
213210

214211
set -- \
215212
"-Dorg.gradle.appname=$APP_BASE_NAME" \
216-
-classpath "$CLASSPATH" \
217-
org.gradle.wrapper.GradleWrapperMain \
213+
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
218214
"$@"
219215

220216
# Stop when "xargs" is not available.

gradlew.bat

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,10 @@ goto fail
7070
:execute
7171
@rem Setup the command line
7272

73-
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
7473

7574

7675
@rem Execute Gradle
77-
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
76+
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
7877

7978
:end
8079
@rem End local scope for the variables with windows NT shell

src/main/java/edu/wpi/first/deployutils/deploy/cache/CompatibleFunction.java

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/main/java/edu/wpi/first/deployutils/deploy/target/discovery/action/DiscoveryAction.java

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/main/java/edu/wpi/first/deployutils/deploy/target/location/DeployLocation.java

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)