Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
15 changes: 0 additions & 15 deletions .appveyor.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ The latest indev build
<dependency>
<groupId>org.panda-lang</groupId>
<artifactId>panda</artifactId>
<version>0.5.2-alpha</version>
<version>0.5.3-alpha</version>
</dependency>
```

Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: "Panda CI"

on:
push:
branches: [ "next" ]
pull_request:
branches: [ "next" ]

jobs:
gradle:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17

- name: Make gradlew executable
run: chmod +x ./gradlew

- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Execute Gradle build
run: ./gradlew build
17 changes: 0 additions & 17 deletions .github/workflows/maven.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ dependency-reduced-pom.xml
buildNumber.properties
.mvn/timing.properties

### Gradle ###
build/
!gradle/grails-wrapper.jar

### Intellij ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
that such additional attribution notices cannot be construed
as modifying the License.

You may add Your own copyright statement to Your modifications and
You may add Your own copyright declaration to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
Expand Down
152 changes: 152 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.gradle.api.tasks.testing.logging.TestLogEvent

plugins {
`java-library`
kotlin("jvm") version "1.7.10"
`maven-publish`
signing
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
}

description = "Panda | Parent"

allprojects {
apply(plugin = "org.jetbrains.kotlin.jvm")
apply(plugin = "maven-publish")
apply(plugin = "java-library")
apply(plugin = "signing")

repositories {
maven("https://maven.reposilite.com/maven-central")
}

group = "org.panda-lang"
version = "0.5.3-alpha"

publishing {
repositories {
maven {
name = "reposilite-repository"
url = uri("https://maven.reposilite.com/${if (version.toString().endsWith("-SNAPSHOT")) "snapshots" else "releases"}")

credentials {
username = getEnvOrProperty("MAVEN_NAME", "mavenUser")
password = getEnvOrProperty("MAVEN_TOKEN", "mavenPassword")
}
}
}
}

afterEvaluate {
description
?.takeIf { it.isNotEmpty() }
?.split("|")
?.let { (projectName, projectDescription) ->
publishing {
publications {
create<MavenPublication>("library") {
pom {
name.set(projectName)
description.set(projectDescription)
url.set("https://github.com/panda-lang/panda")

licenses {
license {
name.set("The Apache License, Version 2.0")
url.set("https://www.apache.org/licenses/LICENSE-2.0.txt")
}
}
developers {
developer {
id.set("dzikoysk")
name.set("dzikoysk")
email.set("dzikoysk@dzikoysk.net")
}
}
scm {
connection.set("scm:git:git://github.com/panda-lang/panda.git")
developerConnection.set("scm:git:ssh://github.com/panda-lang/panda.git")
url.set("https://github.com/panda-lang/panda.git")
}
}

from(components.getByName("java"))
}
}
}

if (findProperty("signing.keyId").takeIf { it?.toString()?.trim()?.isNotEmpty() == true } != null) {
signing {
sign(publishing.publications.getByName("library"))
}
}
}
}

java {
withJavadocJar()
withSourcesJar()
}
}

subprojects {
dependencies {
val junit = "5.8.2"
testImplementation("org.codehaus.groovy:groovy:3.0.9")
testImplementation("org.junit.jupiter:junit-jupiter-api:$junit")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$junit")
}

tasks.withType<Test> {
testLogging {
events(
TestLogEvent.STARTED,
TestLogEvent.PASSED,
TestLogEvent.FAILED,
TestLogEvent.SKIPPED
)
exceptionFormat = TestExceptionFormat.FULL
showExceptions = true
showCauses = true
showStackTraces = true
showStandardStreams = true
}

maxParallelForks = (Runtime.getRuntime().availableProcessors() / 2)
.takeIf { it > 0 }
?: 1

useJUnitPlatform()
}

tasks.register("release") {
dependsOn(
"publishAllPublicationsToReposilite-repositoryRepository",
"publishToSonatype",
)
}
}


tasks.register("release") {
dependsOn(
"clean", "build",
"publishAllPublicationsToReposilite-repositoryRepository",
"publishAllPublicationsToSonatypeRepository",
"closeAndReleaseSonatypeStagingRepository"
)
}

nexusPublishing {
repositories {
sonatype {
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
username.set(getEnvOrProperty("SONATYPE_USER", "sonatypeUser"))
password.set(getEnvOrProperty("SONATYPE_PASSWORD", "sonatypePassword"))
}
}
}

fun getEnvOrProperty(env: String, property: String): String? =
System.getenv(env) ?: findProperty(property)?.toString()
5 changes: 0 additions & 5 deletions examples/hello_world.panda

This file was deleted.

10 changes: 0 additions & 10 deletions examples/lang/array.panda

This file was deleted.

23 changes: 0 additions & 23 deletions examples/lang/basic_types.panda

This file was deleted.

8 changes: 0 additions & 8 deletions examples/lang/bitwise.panda

This file was deleted.

39 changes: 0 additions & 39 deletions examples/lang/branching.panda

This file was deleted.

13 changes: 0 additions & 13 deletions examples/lang/comments.panda

This file was deleted.

Loading