-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit bb1c39b
Showing
45 changed files
with
4,112 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: HiveVM Gradle DevOps | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
- name: Build with Gradle | ||
run: ./gradlew build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
.gradle | ||
**/build/ | ||
!src/**/build/ | ||
|
||
# Ignore Gradle GUI config | ||
gradle-app.setting | ||
|
||
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored) | ||
!gradle-wrapper.jar | ||
|
||
# Avoid ignore Gradle wrappper properties | ||
!gradle-wrapper.properties | ||
|
||
# Cache of project | ||
.gradletasknamecache | ||
|
||
# Eclipse Gradle plugin generated files | ||
# Eclipse Core | ||
.project | ||
# JDT-specific (Eclipse Java Development Tools) | ||
.classpath | ||
|
||
bin/ | ||
|
||
.settings/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"java.compile.nullAnalysis.mode": "automatic", | ||
"java.configuration.updateBuildConfiguration": "automatic" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2024 HiveVM | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
![Status](https://img.shields.io/github/actions/workflow/status/hivevm/gradleDevOps/main.yml?label=Build) | ||
![GitHub License](https://img.shields.io/github/license/hivevm/gradleDevOps?label=License&link=https%3A%2F%2Fopensource.org%2Flicense%2Fmit) | ||
|
||
|
||
# Gradle DevOps | ||
|
||
Gradle plugin to support DevOps. | ||
|
||
|
||
## Gradle wrapper | ||
|
||
To generate the gradle warpper for a specific gradle version type following command. | ||
|
||
~~~ | ||
./gradlew wrapper --gradle-version X.X.X | ||
~~~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
plugins { | ||
id 'com.gradle.plugin-publish' version '1.3.0' | ||
id 'java-gradle-plugin' | ||
id 'maven-publish' | ||
} | ||
|
||
|
||
// Apply the java-library plugin to add support for Java Library | ||
apply plugin: 'java' | ||
apply plugin: 'java-library' | ||
apply plugin: 'java-gradle-plugin' | ||
|
||
|
||
repositories { | ||
mavenLocal() | ||
mavenCentral() | ||
} | ||
|
||
|
||
version = '1.0.0' | ||
group = 'org.hivevm' | ||
|
||
|
||
allprojects { | ||
tasks.withType(Javadoc).all { | ||
enabled = false | ||
} | ||
} | ||
|
||
|
||
dependencies { | ||
implementation gradleApi() | ||
|
||
// https://mvnrepository.com/artifact/org.eclipse.jgit/org.eclipse.jgit | ||
implementation 'org.eclipse.jgit:org.eclipse.jgit:7.0.0.202409031743-r' | ||
|
||
// https://mvnrepository.com/artifact/com.github.docker-java/docker-java | ||
implementation 'com.github.docker-java:docker-java:3.4.0' | ||
|
||
// https://mvnrepository.com/artifact/org.apache.commons/commons-compress | ||
implementation 'org.apache.commons:commons-compress:1.27.1' | ||
|
||
// Use JUnit test framework | ||
// https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-engine | ||
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.11.3' | ||
} | ||
|
||
|
||
sourceSets { | ||
main { | ||
java { | ||
srcDirs += 'src/main/gradle' | ||
} | ||
resources { | ||
} | ||
} | ||
test { | ||
java { | ||
} | ||
} | ||
} | ||
|
||
jar { | ||
manifest { | ||
attributes 'Implementation-Title': 'HiveVM DevOps' | ||
attributes 'Implementation-Version': project.version | ||
} | ||
} | ||
|
||
|
||
// Configured to publish your plugin to the plugin portal | ||
gradlePlugin { | ||
website = 'https://www.hivevm.org' | ||
vcsUrl = 'https://github.com/hivevm/gradleDevOps.git' | ||
plugins { | ||
create("gradle") { | ||
id = 'org.hivevm.devops' | ||
displayName = 'HiveVM DevOps' | ||
description = 'HiveVM gradle plugin for DevOps' | ||
implementationClass = 'org.hivevm.gradle.DevOpsPlugin' | ||
tags.set(["hivevm", "gradle", "devops", "ci/cd"]) | ||
} | ||
} | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.