Compare commits

..

No commits in common. "0777fbc6d2cdbbbb90e644e98f0387fc29187a55" and "2232d07459d0241663ddec8d48926e77574e660b" have entirely different histories.

14 changed files with 265 additions and 263 deletions

17
.github/FUNDING.yml vendored
View file

@ -1,4 +1,13 @@
github: 0x61nas
buy_me_a_coffee: 0x61nas
liberapay: 0x61nas
ko_fi: 0x61nas
# These are supported funding model platforms
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: anas_elgarhy
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

View file

@ -1,19 +1,35 @@
# GitHub Actions Workflow created for testing and preparing the plugin release in following steps:
# - validate Gradle Wrapper,
# - run test and verifyPlugin tasks,
# - run buildPlugin task and prepare artifact for the further tests,
# - run IntelliJ Plugin Verifier,
# - create a draft release.
#
# Workflow is triggered on push and pull_request events.
#
# Docs:
# - GitHub Actions: https://help.github.com/en/actions
# - IntelliJ Plugin Verifier GitHub Action: https://github.com/ChrisCarini/intellij-platform-plugin-verifier-action
#
name: Build
on:
pull_request:
branches:
- master
jobs:
# Run Gradle Wrapper Validation Action to verify the wrapper's checksum
gradleValidation:
name: Gradle Wrapper
runs-on: ubuntu-latest
steps:
- name: Fetch Sources
uses: actions/checkout@v6
uses: actions/checkout@v4
- name: Gradle Wrapper Validation
uses: gradle/actions/wrapper-validation@v6
uses: gradle/wrapper-validation-action@v1.1.0
# Run verifyPlugin and test Gradle tasks
test:
@ -23,22 +39,22 @@ jobs:
steps:
- name: Setup Java
uses: actions/setup-java@v5
uses: actions/setup-java@v3
with:
java-version: 21
java-version: 11
distribution: 'zulu'
- name: Fetch Sources
uses: actions/checkout@v6
uses: actions/checkout@v4
- name: Setup Gradle Dependencies Cache
uses: actions/cache@v5.0.5
uses: actions/cache@v4.0.0
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.gradle', '**/*.gradle.kts', 'gradle.properties') }}
- name: Setup Gradle Wrapper Cache
uses: actions/cache@v5.0.5
uses: actions/cache@v4.0.0
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
@ -60,23 +76,24 @@ jobs:
version: ${{ steps.properties.outputs.version }}
artifact: ${{ steps.properties.outputs.artifact }}
steps:
- name: Setup Java
uses: actions/setup-java@v5
uses: actions/setup-java@v3
with:
java-version: 21
java-version: 11
distribution: 'zulu'
- name: Fetch Sources
uses: actions/checkout@v6
uses: actions/checkout@v4
- name: Setup Gradle Dependencies Cache
uses: actions/cache@v5.0.5
uses: actions/cache@v4.0.0
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.gradle', '**/*.gradle.kts', 'gradle.properties') }}
- name: Setup Gradle Wrapper Cache
uses: actions/cache@v5.0.5
uses: actions/cache@v4.0.0
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
@ -99,7 +116,7 @@ jobs:
# Upload plugin artifact to make it available in the next jobs
- name: Upload artifact
uses: actions/upload-artifact@v7.0.1
uses: actions/upload-artifact@v4.2.0
with:
name: plugin-artifact
path: ./build/distributions/${{ needs.build.outputs.artifact }}
@ -111,23 +128,24 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:
- name: Setup Java
uses: actions/setup-java@v5
uses: actions/setup-java@v3
with:
java-version: 21
java-version: 11
distribution: 'zulu'
- name: Fetch Sources
uses: actions/checkout@v6
uses: actions/checkout@v4
- name: Setup Gradle Dependencies Cache
uses: actions/cache@v5.0.5
uses: actions/cache@v4.0.0
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.gradle', '**/*.gradle.kts', 'gradle.properties') }}
- name: Setup Gradle Wrapper Cache
uses: actions/cache@v5.0.5
uses: actions/cache@v4.0.0
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
@ -145,7 +163,7 @@ jobs:
# Cache Plugin Verifier IDEs
- name: Setup Plugin Verifier IDEs Cache
uses: actions/cache@v5.0.5
uses: actions/cache@v4.0.0
with:
path: ${{ steps.properties.outputs.pluginVerifierHomeDir }}/ides
key: ${{ runner.os }}-plugin-verifier-${{ steps.properties.outputs.ideVersions }}

View file

@ -1,28 +1,16 @@
name: Publish the plugin on marketplace
# This is a basic workflow that is manually triggered
name: Publish the plugin in marketplace
on:
workflow_dispatch:
push:
tags:
- "*.*.*"
release:
types:
- published # when a release is published
jobs:
publish:
deploying:
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Fetch Sources
uses: actions/checkout@v6
- name: Setup Java
uses: actions/setup-java@v5
with:
java-version: '21'
distribution: 'zulu'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v6
# Runs a single command using the runners shell
- name: Deploying a Plugin with Gradle
run: ./gradlew publishPlugin
env:
PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
run: ./gradlew publishPlugin -Dorg.gradle.project.intellijPublishToken=${{ secrets.PUBLISH_TOKEN }}

85
.github/workflows/release.yml vendored Normal file
View file

@ -0,0 +1,85 @@
# GitHub Actions Workflow created for handling the release process based on the draft release prepared
# with the Build workflow. Running the publishPlugin task requires the PUBLISH_TOKEN secret provided.
name: Release
on:
release:
types: [released]
jobs:
# Prepare and publish the plugin to the Marketplace repository
# release:
# name: Publish Plugin
# runs-on: ubuntu-latest
# steps:
#
# - name: Setup Java
# uses: actions/setup-java@v3
# with:
# java-version: 11
# distribution: 'zulu'
#
# - name: Fetch Sources
# uses: actions/checkout@v4
# with:
# ref: ${{ github.event.release.tag_name }}
#
# - name: Publish Plugin
# env:
# PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
# run: ./gradlew publishPlugin
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Setup Java
uses: actions/setup-java@v3
with:
java-version: 11
distribution: 'zulu'
- name: Fetch Sources
uses: actions/checkout@v4
- name: Setup Gradle Dependencies Cache
uses: actions/cache@v4.0.0
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.gradle', '**/*.gradle.kts') }}
- name: Setup Gradle Wrapper Cache
uses: actions/cache@v4.0.0
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
- name: Set environment variables
id: properties
shell: bash
run: |
PROPERTIES="$(./gradlew properties --console=plain -q)"
VERSION="$(echo "$PROPERTIES" | grep "^version:" | cut -f2- -d ' ')"
NAME="$(echo "$PROPERTIES" | grep "^pluginName_:" | cut -f2- -d ' ')"
ARTIFACT="${NAME}-${VERSION}.zip"
echo "::set-output name=version::$VERSION"
echo "::set-output name=name::$NAME"
echo "::set-output name=artifact::$ARTIFACT"
- name: Build Plugin
run: ./gradlew buildPlugin
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./build/distributions/${{ steps.properties.outputs.artifact }}
asset_name: ${{ steps.properties.outputs.artifact }}
asset_content_type: application/zip

View file

@ -1,70 +1,54 @@
# Changelog
## [Unreleased]
## [1.0.2] - 2026-03-04
## Unreleased
### Added
* Add the tafseer/translation text box to the ayah details dialog and make the user able to change the player edition on the fly
- Add the tafseer/translation text box to the ayah details dialog and make the user able to change the player edition on the fly
### Changed
## [1.0.1] - 2023-05-18
### Deprecated
### Removed
### Fixed
### Security
## 1.0.1 - 2023-05-18
- Update the dependencies.
- Fix the icon url in the plugin.xml file.
## [1.0.0] - 2023-01-15
## 1.0.0 - 2023-01-15
- Support the build 2022.3.
- Fix some bugs.
- Upgrade the dependencies.
## [0.0.9] - 2022-11-03 (pre release)
## 0.0.9 - 2022-11-03 (pre release)
- Early support for build 2022.3
- Discontinue support for builds that are older than 2022.3 (change the jdk version from 11 to 17)
- Fix issue trying to start the timer more than one if you closed the project and open a new one.
- Fix the weird language in the details dialog labels issue.
## [0.0.8] - 2022-08-22
## 0.0.8 - 2022-08-22
- Fix some bugs and some improvements
## [0.0.7] - 2022-08-22
## 0.0.7 - 2022-08-22
- improve the play action.
- Add next and previous buttons and autoplay check box.
## [0.0.6] - 2022-08-22
## 0.0.6 - 2022-08-22
- update the icons.
## [0.0.5] - 2022-08-22
## 0.0.5 - 2022-08-22
- Improve details dialog design.
## [0.0.4] - 2022-08-21
## 0.0.4 - 2022-08-21
- Fix forget selected edition id issue after closing the IDE and open it again.
## [0.0.3] - 2022-08-21
## 0.0.3 - 2022-08-21
- Fix sound issue.
- Support intellij API level 213 and above.
## [0.0.2] - 2022-08-20
## 0.0.2 - 2022-08-20
- First stable release.
[Unreleased]: https://github.com/0x61nas/Ayah-intellij/compare/1.0.2...HEAD
[1.0.2]: https://github.com/0x61nas/Ayah-intellij/compare/1.0.1...1.0.2
[1.0.1]: https://github.com/0x61nas/Ayah-intellij/compare/1.0.0...1.0.1
[1.0.0]: https://github.com/0x61nas/Ayah-intellij/compare/0.0.9...1.0.0
[0.0.9]: https://github.com/0x61nas/Ayah-intellij/compare/0.0.8...0.0.9
[0.0.8]: https://github.com/0x61nas/Ayah-intellij/compare/0.0.7...0.0.8
[0.0.7]: https://github.com/0x61nas/Ayah-intellij/compare/0.0.6...0.0.7
[0.0.6]: https://github.com/0x61nas/Ayah-intellij/compare/0.0.5...0.0.6
[0.0.5]: https://github.com/0x61nas/Ayah-intellij/compare/0.0.4...0.0.5
[0.0.4]: https://github.com/0x61nas/Ayah-intellij/compare/0.0.3...0.0.4
[0.0.3]: https://github.com/0x61nas/Ayah-intellij/compare/0.0.2...0.0.3
[0.0.2]: https://github.com/0x61nas/Ayah-intellij/commits/0.0.2

View file

@ -1,13 +1,12 @@
import org.jetbrains.changelog.Changelog
import org.jetbrains.changelog.markdownToHTML
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
fun properties(key: String) = project.findProperty(key).toString()
plugins {
id("java")
id("org.jetbrains.intellij.platform") version "2.16.0"
id("org.jetbrains.changelog") version "2.5.0"
id("org.jetbrains.intellij") version "1.17.0"
id("org.jetbrains.changelog") version "2.2.0"
}
version = properties("pluginVersion")
@ -15,132 +14,85 @@ group = properties("pluginGroup")
repositories {
mavenCentral()
intellijPlatform {
defaultRepositories()
}
maven("https://jitpack.io")
}
dependencies {
implementation("com.github.anas-elgarhy:alquran-cloud-api:v0.5.2")
implementation("com.miglayout:miglayout-swing:11.4.3")
implementation("com.github.anas-elgarhy:alquran-cloud-api:0.4.5")
implementation("com.miglayout:miglayout-swing:11.2")
// implementation("com.github.goxr3plus:java-stream-player:10.0.2")
implementation("com.googlecode.soundlibs:jlayer:1.0.1.4")
compileOnly("org.projectlombok:lombok:1.18.46")
annotationProcessor("org.projectlombok:lombok:1.18.46")
compileOnly("org.projectlombok:lombok:1.18.30")
annotationProcessor("org.projectlombok:lombok:1.18.30")
testImplementation("org.projectlombok:lombok:1.18.46")
testAnnotationProcessor("org.projectlombok:lombok:1.18.46")
intellijPlatform {
intellijIdea("2025.3.3")
bundledPlugin("com.intellij.java")
testFramework(TestFrameworkType.Platform)
}
testImplementation("org.projectlombok:lombok:1.18.30")
testAnnotationProcessor("org.projectlombok:lombok:1.18.30")
}
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
// Configure IntelliJ Platform Gradle Plugin - read more: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-extension.html
intellijPlatform {
pluginConfiguration {
name = providers.gradleProperty("pluginName")
version = providers.gradleProperty("pluginVersion")
// Configure Gradle IntelliJ Plugin
// Read more: https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html
intellij {
pluginName.set(properties("pluginName"))
version.set(properties("platformVersion"))
type.set(properties("platformType"))
// Extract the <!-- Plugin description --> section from README.md and provide for the plugin's manifest
description = providers.fileContents(layout.projectDirectory.file("README.md")).asText.map {
val start = "<!-- Plugin description -->"
val end = "<!-- Plugin description end -->"
with(it.lines()) {
if (!containsAll(listOf(start, end))) {
throw GradleException("Plugin description section not found in README.md:\n$start ... $end")
}
subList(indexOf(start) + 1, indexOf(end)).joinToString("\n").let(::markdownToHTML)
}
}
val changelog = project.changelog // local variable for configuration cache compatibility
// Get the latest available change notes from the changelog file
changeNotes = providers.gradleProperty("pluginVersion").map { pluginVersion ->
with(changelog) {
renderItem(
(getOrNull(pluginVersion) ?: getUnreleased())
.withHeader(false)
.withEmptySections(false),
Changelog.OutputType.HTML,
)
}
}
ideaVersion {
sinceBuild = providers.gradleProperty("pluginSinceBuild")
}
}
signing {
certificateChain = providers.environmentVariable("CERTIFICATE_CHAIN")
privateKey = providers.environmentVariable("PRIVATE_KEY")
password = providers.environmentVariable("PRIVATE_KEY_PASSWORD")
}
publishing {
token = providers.environmentVariable("PUBLISH_TOKEN")
// The pluginVersion is based on the SemVer (https://semver.org) and supports pre-release labels, like 2.1.7-alpha.3
// Specify pre-release label to publish the plugin in a custom Release Channel automatically. Read more:
// https://plugins.jetbrains.com/docs/intellij/publishing-plugin.html#specifying-a-release-channel
channels = providers.gradleProperty("pluginVersion").map { listOf(it.substringAfter('-', "").substringBefore('.').ifEmpty { "default" }) }
}
pluginVerification {
ides {
recommended()
}
}
}
// Configure Gradle Changelog Plugin - read more: https://github.com/JetBrains/gradle-changelog-plugin
changelog {
groups.empty()
repositoryUrl = providers.gradleProperty("pluginRepositoryUrl")
versionPrefix = ""
plugins.set(listOf(/* Plugin Dependencies */))
}
tasks {
// Set the JVM compatibility versions
withType<JavaCompile> {
options.encoding = "UTF-8"
sourceCompatibility = "17"
targetCompatibility = "17"
}
wrapper {
gradleVersion = providers.gradleProperty("gradleVersion").get()
gradleVersion = properties("gradleVersion")
}
patchPluginXml {
version.set(properties("pluginVersion"))
sinceBuild.set(properties("pluginSinceBuild"))
untilBuild.set("")
// Extract the <!-- Plugin description --> section from README.md and provide for the plugin's manifest
pluginDescription.set(
file("README.md").readText().lines().run {
val start = "<!-- Plugin description -->"
val end = "<!-- Plugin description end -->"
if (!containsAll(listOf(start, end))) {
throw GradleException("Plugin description section not found in README.md:\n$start ... $end")
}
subList(indexOf(start) + 1, indexOf(end))
}.joinToString("\n")
.replace("./assets/", "https://raw.githubusercontent.com/anas-elgarhy/Ayah-intellij/master/assets/")
.let { markdownToHTML(it) }
)
// Get the latest available change notes from the changelog file
changeNotes.set(provider {
with(changelog) {
renderItem(
getOrNull(properties("pluginVersion")) ?: getLatest(),
Changelog.OutputType.HTML,
)
}
})
}
publishPlugin {
dependsOn(patchChangelog)
}
}
intellijPlatformTesting {
runIde {
register("runIdeForUiTests") {
task {
jvmArgumentProviders += CommandLineArgumentProvider {
listOf(
"-Drobot-server.port=8082",
"-Dide.mac.message.dialogs.as.sheets=false",
"-Djb.privacy.policy.text=<!--999.999-->",
"-Djb.consents.confirmation.enabled=false",
)
}
}
plugins {
robotServerPlugin()
}
}
dependsOn("patchChangelog", "patchPluginXml")
token.set(System.getenv("PUBLISH_TOKEN"))
// pluginVersion is based on the SemVer (https://semver.org) and supports pre-release labels, like 2.1.7-alpha.3
// Specify pre-release label to publish the plugin in a custom Release Channel automatically. Read more:
// https://plugins.jetbrains.com/docs/intellij/deployment.html#specifying-a-release-channel
channels.set(listOf(properties("pluginVersion").split('-').getOrElse(1) { "default" }.split('.').first()))
}
}

View file

@ -2,9 +2,9 @@
pluginGroup = com.anas.intellij.plugins.ayah
pluginName = Ayah
pluginRepositoryUrl = https://github.com/0x61nas/Ayah-intellij
pluginRepositoryUrl = https://github.com/anas-elgarhy/Ayah-intellij
# SemVer format -> https://semver.org
pluginVersion = 1.0.2
pluginVersion = 1.0.1
# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
pluginSinceBuild = 223
@ -14,7 +14,7 @@ platformType = IC
platformVersion = 2022.3
# Gradle Releases -> https://github.com/gradle/gradle/releases
gradleVersion = 9.4
gradleVersion = 7.6
# Enable Gradle Configuration Cache -> https://docs.gradle.org/current/userguide/configuration_cache.html
org.gradle.unsafe.configuration-cache = true

Binary file not shown.

View file

@ -1,9 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

15
gradlew vendored
View file

@ -1,7 +1,7 @@
#!/bin/sh
#
# Copyright © 2015 the original authors.
# Copyright © 2015-2021 the original authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@ -15,8 +15,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
#
##############################################################################
#
@ -57,7 +55,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/3d91ce3b8caaf77ad09f381f43615b715b53f72c/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
@ -86,7 +84,7 @@ done
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
@ -114,6 +112,7 @@ case "$( uname )" in #(
NONSTOP* ) nonstop=true ;;
esac
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
# Determine the Java command to use to start the JVM.
@ -171,6 +170,7 @@ fi
# For Cygwin or MSYS, switch paths to Windows format before running java
if "$cygwin" || "$msys" ; then
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
JAVACMD=$( cygpath --unix "$JAVACMD" )
@ -203,14 +203,15 @@ fi
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# Collect all arguments for the java command:
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
# and any embedded shellness will be escaped.
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
# treated as '${Hostname}' itself on the command line.
set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
-classpath "$CLASSPATH" \
org.gradle.wrapper.GradleWrapperMain \
"$@"
# Stop when "xargs" is not available.

54
gradlew.bat vendored Executable file → Normal file
View file

@ -13,8 +13,6 @@
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem
@rem SPDX-License-Identifier: Apache-2.0
@rem
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@ -23,8 +21,8 @@
@rem
@rem ##########################################################################
@rem Set local scope for the variables, and ensure extensions are enabled
setlocal EnableExtensions
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=.
@ -45,13 +43,13 @@ set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if %ERRORLEVEL% equ 0 goto execute
echo. 1>&2
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
"%COMSPEC%" /c exit 1
goto fail
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
@ -59,24 +57,36 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto execute
echo. 1>&2
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
"%COMSPEC%" /c exit 1
goto fail
:execute
@rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
@rem Execute Gradle
@rem endlocal doesn't take effect until after the line is parsed and variables are expanded
@rem which allows us to clear the local environment before executing the java command
endlocal & "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* & call :exitWithErrorLevel
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
:exitWithErrorLevel
@rem Use "%COMSPEC%" /c exit to allow operators to work properly in scripts
"%COMSPEC%" /c exit %ERRORLEVEL%
:end
@rem End local scope for the variables with windows NT shell
if %ERRORLEVEL% equ 0 goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega

View file

@ -1,42 +0,0 @@
#!/usr/bin/env just --justfile
REPO_NAME := "Ayah-intellij"
alias dist := package
alias ch := patch-changelog
package:
cd {{justfile_directory()}} && ./gradlew buildPlugin
clean:
cd {{justfile_directory()}} && ./gradlew clean
# Update the CHANGELOG.md
patch-changelog:
cd {{justfile_directory()}} && ./gradlew patchChangelog
setup-remotes:
git remote add github git@github.com:0x61nas/{{REPO_NAME}}.git
git remote add gitlab git@gitlab.com:anelgarhy/{{REPO_NAME}}.git
git remote add codeberg ssh://git@codeberg.org/0x61nas/{{REPO_NAME}}.git
git remote add disroot ssh://git@git.disroot.org/anas/{{REPO_NAME}}.git
git remote add tangled git@tangled.org:anas.tngl.sh/{{REPO_NAME}}
git remote add codefloe ssh://git@codefloe.com/anas/{{REPO_NAME}}.git
# Push the code to all remotes
push FLAGS="-u" BRANSH="master":
git push {{FLAGS}} github {{BRANSH}}
git push {{FLAGS}} gitlab {{BRANSH}}
git push {{FLAGS}} codeberg {{BRANSH}}
git push {{FLAGS}} disroot {{BRANSH}}
git push {{FLAGS}} tangled {{BRANSH}}
git push {{FLAGS}} codefloe {{BRANSH}}
# Push the git tags to all remotes
pusht: push
git push --tags github
git push --tags gitlab
git push --tags codeberg
git push --tags disroot
git push --tags tangled
git push --tags codefloe

View file

@ -1,6 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
"config:base"
]
}

View file

@ -2,7 +2,6 @@ rootProject.name = "Ayah-intellij"
pluginManagement {
repositories {
maven("https://oss.sonatype.org/content/repositories/snapshots/")
maven("https://central.sonatype.com/repository/maven-snapshots/")
gradlePluginPortal()
}
}