Skip to content

Commit

Permalink
Updated to make it actually work
Browse files Browse the repository at this point in the history
  • Loading branch information
vladyslavvolkov committed Jul 30, 2020
1 parent 72fb583 commit 210693f
Show file tree
Hide file tree
Showing 58 changed files with 197 additions and 6,007 deletions.
37 changes: 37 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
root = true

[*]
charset = utf-8
indent_size = tab
indent_style = space
insert_final_newline = true
max_line_length = 120
tab_width = 2
trim_trailing_whitespace = true

ij_any_align_multiline_chained_methods = true
ij_any_array_initializer_right_brace_on_new_line = false
ij_any_block_brace_style = end_of_line
ij_any_spaces_within_braces = true
ij_any_keep_line_breaks = true
ij_any_method_call_chain_wrap = on_every_item
ij_continuation_indent_size = 2
ij_formatter_off_tag = @formatter:off
ij_formatter_on_tag = @formatter:on
ij_formatter_tags_enabled = true
ij_smart_tabs = false
ij_wrap_on_typing = false

[{*.neon, .gitmodules, Caddyfile, .gitconfig, ssh_config}]
indent_style = tab

[{*.tf, *.tfvars}]
ij_hcl-terraform_array_wrapping = 0
ij_hcl-terraform_object_wrapping = 0
ij_hcl-terraform_property_alignment = 2

[gradlew.bat]
end_of_line = crlf

[{gradlew, *.sh}]
end_of_line = lf
35 changes: 34 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,35 @@
.gradle
### macOS ##############################################################################################################
.DS_Store
__MACOSX

### IDE ################################################################################################################
.idea

### Logs ###################################################################################################################################
*.log

### Java ###################################################################################################################################
build
.gradle
*.hprof

### PHP ####################################################################################################################################
var
vendor

### NodeJS #################################################################################################################################
dist
node_modules

### Terraform ##############################################################################################################################
*.tfvars
.terraform

### Ansible ################################################################################################################################
.ansible
*.retry

### Sonar Scanner ##########################################################################################################################
.scannerwork

### Project ################################################################################################################################
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) 2020 Hiberbee

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.
26 changes: 24 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,26 @@
# Ansible Gradle plugin

## Documentation
1. [Index](docs/index.md)
This plugin allows to create and configure Ansible tasks with Gradle

## Example

```
plugins {
id "com.hiberbee.gradle.ansible" version "0.4.0"
}
# Configuration
ansible {
inventory "inventory.yml"
}
# Playbook tasks
tasks.create("testPlaybook", PlaybookTask) {
playbook "playbook.yml"
}
# Vault tasks
tasks.create("encryptVault", VaultTask) {
file "secrets.yml"
}
```
49 changes: 18 additions & 31 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,31 +1,26 @@
/*
* Copyright (c) 2019. Hiberbee https://hiberbee.com"
*
* This file is part of the Hiberbee OSS. Licensed under the MIT License
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
*/

plugins {
id "com.github.ben-manes.versions" version "0.21.0"
id "com.gradle.plugin-publish" version "0.10.1"
id "com.github.ben-manes.versions" version "0.29.0"
id "com.gradle.plugin-publish" version "0.12.0"
id "groovy"
id "idea"
id "jacoco"
id "java-gradle-plugin"
id "org.jetbrains.gradle.plugin.idea-ext" version "0.5"
id "org.sonarqube" version "2.7"
id "ru.vyarus.mkdocs" version "1.1.0"
id "org.jetbrains.gradle.plugin.idea-ext" version "0.8.1"
id "org.sonarqube" version "3.0"
}

group "com.hiberbee.gradle"
version "0.4.0"

repositories {
mavenCentral()
mavenLocal()
}
group "com.hiberbee.gradle"
version "0.2.1"

test {
useJUnitPlatform()
}

gradlePlugin {
plugins {
ansiblePlugin {
Expand All @@ -34,31 +29,23 @@ gradlePlugin {
}
}
}

pluginBundle {
website = "https://hiberbee.github.io/ansible-gradle-plugin"
vcsUrl = "https://github.com/hiberbee/ansible-gradle-plugin"
description = "Plugin adds couple of Ansible tasks, helping to generate configuration from Jinja templates, encrypt/decrypt secrets etc"
website = "https://github.com/hiberbee/gradle-plugin-ansible"
vcsUrl = "https://github.com/hiberbee/gradle-plugin-ansible"
description = "Plugin allows to create and configure Ansible tasks with Gradle"
tags = ["ansible", "configuration-management"]
plugins {
ansiblePlugin {
displayName = "Ansible Gradle plugin"
}
}
}

dependencies {
compile localGroovy()
implementation "com.hubspot.jinjava:jinjava:2.5.0"
implementation "org.codehaus.groovy:groovy-all:2.5.6"
implementation "org.yaml:snakeyaml:1.24"
implementation gradleApi()
testImplementation "org.junit.jupiter:junit-jupiter:5.4.1"
testImplementation "org.junit.jupiter:junit-jupiter-engine:5.4.1"
}
python {
installVirtualenv = false
}
mkdocs {
buildDir = "docs"
sourcesDir = "src/main/resources"
testImplementation "org.junit.jupiter:junit-jupiter:5.7.0-M1"
testImplementation "org.junit.jupiter:junit-jupiter-engine:5.7.0-M1"
}

Loading

0 comments on commit 210693f

Please sign in to comment.