https://github.com/codicis/asn1-gradle-plugin
Gradle plugin base on Java ASN.1 BER and DER encoding/decoding library (ASN1bean)
https://github.com/codicis/asn1-gradle-plugin
asn1 compiler gradle java plugin
Last synced: 8 months ago
JSON representation
Gradle plugin base on Java ASN.1 BER and DER encoding/decoding library (ASN1bean)
- Host: GitHub
- URL: https://github.com/codicis/asn1-gradle-plugin
- Owner: codicis
- License: apache-2.0
- Created: 2024-10-17T19:08:23.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-22T08:26:40.000Z (over 1 year ago)
- Last Synced: 2024-12-20T05:42:48.811Z (over 1 year ago)
- Topics: asn1, compiler, gradle, java, plugin
- Homepage:
- Size: 56.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ASN.1 Gradle Compiler Plugin
This Gradle plugin provides easy integration of [ASN.1bean](https://github.com/beanit/asn1bean) — a Java-based library supporting **BER** and **DER** encoding/decoding of ASN.1 data structures.
## 📦 Plugin Setup
Add the plugin using the **plugins DSL** in your `build.gradle.kts`:
```kotlin
plugins {
id("io.github.codicis.asn1") version "0.1"
}
```
## ⚙️ Configuration
Configure the plugin via the `asn1` extension block:
```kotlin
asn1 {
// Set the ASN.1 compiler version
version = "1.14.0"
model {
register("taskName"){
// Define target package name for generated classes
packageName.set("com.example.generated")
// Provide input ASN.1 source files
sourceFiles.setFrom(fileTree("src/main/asn1"))
// Override if you need a custom output directory for generated Java classes
outputDir.set(layout.buildDirectory.dir("generated/asn1"))
}
}
}
```
## 📚 Resources
For more details and documentation, refer to:
- 🌐 [ASN.1bean Overview](https://www.beanit.com/asn1/)
- 🧩 [ASN.1bean GitHub Repository](https://github.com/beanit/asn1bean)