Skip to content

Commit

Permalink
Merge pull request #2 from bloxbean/aiken
Browse files Browse the repository at this point in the history
Aiken Lang Support
  • Loading branch information
satran004 authored Sep 24, 2024
2 parents 2f37917 + 0cf639e commit 5d694ce
Show file tree
Hide file tree
Showing 131 changed files with 7,191 additions and 47 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 11
java-version: '17'
distribution: 'temurin'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,18 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 11
java-version: '17'
distribution: 'temurin'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew clean build
- name: Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
Expand Down
75 changes: 54 additions & 21 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ buildscript {
plugins {
id 'java'
id 'idea'
id 'org.jetbrains.intellij' version '1.3.0'
id "org.jetbrains.kotlin.jvm" version "1.6.10"
id 'org.jetbrains.intellij.platform' version '2.0.1'
id "org.jetbrains.kotlin.jvm" version "1.9.25"
id "org.jetbrains.grammarkit" version "2022.3.2.2"
}

apply plugin: "kotlin"
Expand All @@ -29,40 +30,52 @@ version '0.1.6-beta1'
repositories {
mavenLocal()
mavenCentral()
maven { url 'https://jitpack.io' }
intellijPlatform {
defaultRepositories()
}
}

compileJava {
sourceCompatibility = '11'
targetCompatibility = '11'
sourceCompatibility = '17'
targetCompatibility = '17'
}

compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
//compileKotlin {
// kotlinOptions.jvmTarget = "1.8"
//}
//compileTestKotlin {
// kotlinOptions.jvmTarget = "1.8"
//}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'lib')
compile('com.bloxbean.cardano:cardano-client-lib:0.3.0') {
intellijPlatform {
intellijIdeaCommunity("2023.3.6")
plugin("com.redhat.devtools.lsp4ij:0.5.0")
pluginVerifier()
zipSigner()
instrumentationTools()
}

implementation fileTree(include: ['*.jar'], dir: 'lib')
implementation('com.bloxbean.cardano:cardano-client-lib:0.4.3') {
exclude group: 'org.slf4j', module: 'slf4j-api'
}
compile('com.bloxbean.cardano:cardano-client-backend-blockfrost:0.3.0') {
implementation('com.bloxbean.cardano:cardano-client-backend-blockfrost:0.4.3') {
exclude group: 'org.slf4j', module: 'slf4j-api'
exclude group: 'com.bloxbean.cardano', module: 'cardano-client-lib'
}
compile('com.bloxbean.cardano:cardano-client-backend-koios:0.3.0') {
implementation('com.bloxbean.cardano:cardano-client-backend-koios:0.4.3') {
exclude group: 'org.slf4j', module: 'slf4j-api'
exclude group: 'com.bloxbean.cardano', module: 'cardano-client-lib'
}

implementation('com.moandjiezana.toml:toml4j:0.7.2')
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.10")

compileOnly 'org.projectlombok:lombok:1.18.20'

annotationProcessor 'org.projectlombok:lombok:1.18.20'
testCompile group: 'junit', name: 'junit', version: '4.12'
testImplementation group: 'junit', name: 'junit', version: '4.12'
}

sourceSets.main.java.srcDirs('src/main/gen', 'src/main/idea')
Expand All @@ -74,13 +87,33 @@ String changeLogAsHtml() {
renderer.render(changeLogDocument)
}

intellij {
version = '2021.1'
//type = 'IC'
plugins = ['java']
grammarKit {
jflexRelease = "1.7.0-1"
grammarKitRelease = "2021.1.2"
generateLexer {
sourceFile = file('src/main/java/com/bloxbean/intelliada/idea/aiken/lang/grammar/_AikenLexer.flex')
targetOutputDir = file('src/main/gen/com/bloxbean/intelliada/idea/aiken/lang')
}

updateSinceUntilBuild = false
generateParser {
sourceFile = file('src/main/java/com/bloxbean/intelliada/idea/aiken/lang/grammar/Aiken.bnf')
targetRootOutputDir = file('src/main/gen')
pathToParser = 'com/bloxbean/intelliada/idea/aiken/lang/parser'
pathToPsiRoot = 'com/bloxbean/intelliada/idea/aiken/lang/psi'
}
}

//intellij {
// version = '2023.2'
//// version = "232-EAP-SNAPSHOT"
//// type = "IU"
//// version = "2024.1.4"
//// type = "IU"
// type = 'IC'
// plugins = ['java']
//
// updateSinceUntilBuild = false
//}
patchPluginXml {
changeNotes = changeLogAsHtml()
}
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-all.zip
Loading

0 comments on commit 5d694ce

Please sign in to comment.