tanvd / kosogor Goto Github PK
View Code? Open in Web Editor NEWDefaults and simplified Kotlins-DSL interfaces for Gradle
License: Apache License 2.0
Defaults and simplified Kotlins-DSL interfaces for Gradle
License: Apache License 2.0
It would be nice to be able to declare gradle variables, which can then be used in the terraform code.
Hello, at my hard journey to find an easy way to create an obfuscated fat jar I found the kosogor.zkm plugin. But I have an error in gradle and Im also not sure if it will work even if I solve the problem. Could you help me to finaly create an obfuscated shadowjar?
This is what I have so far (creating shadow jars works by the way):
import tanvd.kosogor.zkm.zkmJars
plugins {
id("com.github.johnrengelman.shadow") version "5.2.0"
id("tanvd.kosogor.zkm") version "1.0.1" apply true
java
kotlin("jvm") version "1.3.61"
}
jar{
manifest {
attributes["Main-Class"] = "***not important***"
}
}
shadowJar{
archiveBaseName.set("***not important***")
archiveClassifier.set("")
archiveVersion.set("")
}
zkmJars {
dependsOn(shadowJar)
zkmClasspath = setOf(configurations["compile"])
inputJars = setOf(jar) //Required: Set<File> Found: Set<TaskProvider<Jar>>
outputDir = File(projectDir, "obfuscated-jar")
changeLogFile = File(projectDir, "obfuscated-log/ChangeLog.txt")
zkmLogFile = File(projectDir, "obfuscated-log/ZkmLog.txt")
zkmJar = File(projectDir, "zkm/zkm.jar")
zkmScript = File(projectDir, "zkm/script.zkm")
}
Also do I realy need some kind of script for zkm? Is there no default?
I am new to gradle and was wondering if you could provide some examples on how to use this plugin (sample build.gradle. Specifically I am trying to figure out how to pass parameters to the tasks (like -var and -var-file).
It would be nice to have support for terraform fmt.
I would like the use terraform fmt -check in CI/CD systems and without it on developers laptops.
Are you open to this change. I am willing to give it a try myself and submit a PR but wanted to make sure it would be accepted.
Hi,
Thank you for making these plugins. I wanted to use the terraform one because it looks to be exactly what I wanted to have! But I am getting some errors trying to use it. I copied the setup from the readme:
plugins {
id "tanvd.kosogor.terraform" version "1.0.0" apply true
}
terraform {
config {
tfVersion = "0.12.2"
awsProvider = "1.60.0"
awsRegion = "eu-west-1"
awsProfile = "default"
}
root("example", File(projectDir, "terraform"))
}
But I am getting this error:
> Could not find method terraform() for arguments [build_8o7rqtz5qiddvtkpph6x1pz3s$_run_closure1@52636e92] on project ':infra:terraform:bootstrap' of type org.gradle.api.Project.
Any clue as to what might go wrong?
Kind regards,
Stijn
Hello, I was wondering if it is possible to configure publishJar
to work with GitHub Packages. I spent a while trying to figure it out with no luck so I thought it'd be best to ask.
Thank you.
https://docs.github.com/en/packages/guides/configuring-gradle-for-use-with-github-packages
The idea is to catch terraform output variables and make them usable from Gradle DSL
Hello!
We need to use a proxy with terraform, but it can only pick it up from environment variables. Could those be configured for terraform as well?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.