Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
devcontainer-features
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eazydevelop-devcontainer-temp
devcontainer-features
Commits
3a554b81
Unverified
Commit
3a554b81
authored
Aug 09, 2022
by
Samruddhi Khandale
Committed by
GitHub
Aug 09, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Java: fix gradle bug - invalid version (#84)
* Java: fix gradle bug - invalid version * drop 'lts'
parent
abfefdcb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
devcontainer-feature.json
src/java/devcontainer-feature.json
+2
-3
install.sh
src/java/install.sh
+1
-1
install_gradle_and_maven.sh
test-scenarios/install_gradle_and_maven.sh
+1
-0
scenarios.json
test-scenarios/scenarios.json
+1
-1
No files found.
src/java/devcontainer-feature.json
View file @
3a554b81
{
"id"
:
"java"
,
"version"
:
"1.0.
0
"
,
"version"
:
"1.0.
1
"
,
"name"
:
"Java (via SDKMAN!)"
,
"description"
:
"Installs Java, SDKMAN! (if not installed), and needed dependencies."
,
"options"
:
{
"version"
:
{
"type"
:
"string"
,
"proposals"
:
[
"lts"
,
"latest"
,
"none"
,
"17"
,
"11"
,
"8"
],
"default"
:
"l
ts
"
,
"default"
:
"l
atest
"
,
"description"
:
"Select or enter a Java version to install"
},
"install_gradle"
:
{
...
...
src/java/install.sh
View file @
3a554b81
...
...
@@ -100,7 +100,7 @@ sdk_install() {
local
set_as_default
=
${
6
:-
"true"
}
if
[
"
${
requested_version
}
"
=
"none"
]
;
then return
;
fi
# Blank will install latest stable version SDKMAN has
if
[
"
${
requested_version
}
"
=
"lts"
]
||
[
"
${
requested_version
}
"
=
"default"
]
;
then
if
[
"
${
requested_version
}
"
=
"l
atest"
]
||
[
"
${
requested_version
}
"
=
"l
ts"
]
||
[
"
${
requested_version
}
"
=
"default"
]
;
then
requested_version
=
""
elif
echo
"
${
requested_version
}
"
|
grep
-oE
"
${
full_version_check
}
"
>
/dev/null 2>&1
;
then
echo
"
${
requested_version
}
"
...
...
test-scenarios/install_gradle_and_maven.sh
View file @
3a554b81
...
...
@@ -5,6 +5,7 @@ set -e
# Optional: Import test library
source
dev-container-features-test-lib
check
"java"
java
--version
check
"gradle"
gradle
--version
check
"maven"
mvn
--version
...
...
test-scenarios/scenarios.json
View file @
3a554b81
...
...
@@ -3,7 +3,7 @@
"image"
:
"ubuntu:focal"
,
"features"
:
{
"java"
:
{
"version"
:
"
17
"
,
"version"
:
"
latest
"
,
"install_gradle"
:
true
,
"install_maven"
:
true
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment