Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrigl authored and Markus Brigl committed Nov 26, 2024
0 parents commit bb1c39b
Show file tree
Hide file tree
Showing 45 changed files with 4,112 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/main.yml
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
25 changes: 25 additions & 0 deletions .gitignore
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/
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"java.compile.nullAnalysis.mode": "automatic",
"java.configuration.updateBuildConfiguration": "automatic"
}
21 changes: 21 additions & 0 deletions LICENSE
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.
16 changes: 16 additions & 0 deletions README.md
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
~~~
84 changes: 84 additions & 0 deletions build.gradle
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 added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
7 changes: 7 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
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
Loading

0 comments on commit bb1c39b

Please sign in to comment.