Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
7acadf2
Allow users to circumvent powershell stuff
alexarchambault Apr 5, 2021
c123afd
update SBT version
soc Feb 12, 2024
968eb94
Setup publishing (#1)
alexarchambault May 24, 2024
03b28bb
Use latest VirtusLab/scala-cli-setup action
alexarchambault May 28, 2024
da35bb6
Fix javadoc generation
alexarchambault May 28, 2024
04ef0d9
Don't wait for tests to run release job
alexarchambault May 28, 2024
c4ddd07
Merge pull request #2 from coursier/fix-javadoc
alexarchambault May 28, 2024
eb23aab
Merge remote-tracking branch 'upstream/main' into upstream-changes
alexarchambault May 28, 2024
a44c879
Merge pull request #3 from coursier/upstream-changes
alexarchambault May 28, 2024
7c8dad3
Update README.md for the fork
alexarchambault May 28, 2024
ca4f793
Merge commit '4679113f516d5182facfc67b3775b79bf67cb7d8'
alexarchambault Dec 27, 2024
79a6dbb
Merge pull request #4 from coursier/merge-upstream
alexarchambault Dec 27, 2024
42a5c08
Switch build to Mill
alexarchambault Dec 27, 2024
4f73df4
Run tests on all OSes
alexarchambault Dec 27, 2024
73a3bc4
Minimize previous commit diff
alexarchambault Dec 27, 2024
02f03ee
Disable powershell v2 stuff
alexarchambault Jan 5, 2025
edeeaa5
Merge pull request #5 from coursier/mill
alexarchambault Jan 5, 2025
1064317
Add Windows interface
alexarchambault Jan 3, 2025
d4be967
Add back Windows powershell stuff
alexarchambault Jan 3, 2025
9cb2676
Allow to pass custom Windows instance to ProjectDirectories#fromPath
alexarchambault Jan 5, 2025
4bd7edf
Merge branch 'foreign-function-api-upstream' into foreign-api-jdk-23
alexarchambault Jan 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: CI
on:
push:
branches:
- main
tags:
- "v*"
pull_request:

jobs:
test:
name: Test ${{ matrix.OS }}
runs-on: ${{ matrix.OS }}
strategy:
fail-fast: false
matrix:
OS: ["ubuntu-latest", "windows-latest", "macos-13", "macos-14"]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: coursier/[email protected]
- uses: coursier/setup-action@v1
with:
jvm: "23"
- name: Test
run: ./mill __.test
- name: Publish locally
run: ./mill __.publishLocal # This ensures that javadoc generation succeeds in particular

publish:
if: github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: coursier/[email protected]
- uses: coursier/setup-action@v1
with:
jvm: "23"
- name: Publish
run: ./mill mill.scalalib.PublishModule/ --sonatypeUri https://s01.oss.sonatype.org/service/local --sonatypeSnapshotUri https://s01.oss.sonatype.org/content/repositories/snapshots
env:
MILL_PGP_SECRET_BASE64: ${{ secrets.PUBLISH_SECRET_KEY }}
MILL_PGP_PASSPHRASE: ${{ secrets.PUBLISH_SECRET_KEY_PASSWORD }}
MILL_SONATYPE_USERNAME: ${{ secrets.PUBLISH_USER }}
MILL_SONATYPE_PASSWORD: ${{ secrets.PUBLISH_PASSWORD }}
27 changes: 0 additions & 27 deletions .github/workflows/test.yml

This file was deleted.

6 changes: 2 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
target/
.classpath
.project
.settings
out/
.bsp/
1 change: 1 addition & 0 deletions .mill-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.12.4
34 changes: 21 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
[![Maven Central](https://img.shields.io/maven-central/v/dev.dirs/directories.svg?style=for-the-badge)](https://search.maven.org/#search|gav|1|g%3A%22dev.dirs%22%20AND%20a%3A%22directories%22)
[![API documentation](http://javadoc.io/badge/dev.dirs/directories.svg?style=for-the-badge)](http://javadoc.io/doc/dev.dirs/directories)
[![Maven Central](https://img.shields.io/maven-central/v/io.get-coursier.util/directories.svg?style=for-the-badge)](https://search.maven.org/#search|gav|1|g%3A%22io.get-coursier.util%22%20AND%20a%3A%22directories%22)
[![API documentation](http://javadoc.io/badge/io.get-coursier.util/directories.svg?style=for-the-badge)](http://javadoc.io/doc/io.get-coursier.util/directories)
![actively developed](https://img.shields.io/badge/maintenance-actively_developed-brightgreen.svg?style=for-the-badge)
[![GitHub Actions status](https://img.shields.io/github/actions/workflow/status/dirs-dev/directories-jvm/test.yml?branch=main&style=for-the-badge)](https://github.com/dirs-dev/directories-jvm/actions/workflows/test.yml)
[![License: MPL-2.0](https://img.shields.io/github/license/dirs-dev/directories-jvm.svg?style=for-the-badge)](LICENSE)
[![GitHub Actions status](https://img.shields.io/github/actions/workflow/status/coursier/directories-jvm/ci.yml?branch=main&style=for-the-badge)](https://github.com/coursier/directories-jvm/actions/workflows/ci.yml)
[![License: MPL-2.0](https://img.shields.io/github/license/coursier/directories-jvm.svg?style=for-the-badge)](LICENSE)

# Directories
# Coursier directories-jvm

Fork of of the [dirs-dev/directories-jvm](https://github.com/dirs-dev/directories-jvm) project, with [coursier](https://github.com/coursier/coursier)-specific changes

Below is the README of the upstream [dirs-dev/directories-jvm](https://github.com/dirs-dev/directories-jvm), slightly modified for the fork (Maven Central organization, version, JVM requirements).

## Introduction

Expand All @@ -22,7 +26,7 @@ The library provides the location of these directories by leveraging the mechani

## Platforms

This library is written in Java, and runs on the JVM (≥ 6).
This library is written in Java, and runs on the JVM (≥ 8).

A version of this library implemented in Rust is provided by [directories-rs](https://github.com/dirs-dev/directories-rs).

Expand All @@ -35,23 +39,23 @@ Add the library as a dependency to your project:
##### Maven
```xml
<dependency>
<groupId>dev.dirs</groupId>
<groupId>io.get-coursier.util</groupId>
<artifactId>directories</artifactId>
<version>26</version>
<version>0.1.0</version>
</dependency>
```
##### Gradle
```groovy
compile 'dev.dirs:directories:26'
compile 'io.get-coursier.util:directories:0.1.0'
```

##### SBT
```scala
"dev.dirs" % "directories" % "26"
"io.get-coursier.util" % "directories" % "0.1.0"
```

The library itself is built against Java 6 to allow for the widest possible usage scenarios.
It can be used on any Java version >= 6.
The library itself is built against Java 8 to allow for the widest possible usage scenarios.
It can be used on any Java version >= 8.

#### Example

Expand Down Expand Up @@ -185,7 +189,11 @@ The version number of this library consists of a whole number, which is incremen

## Changelog

### 26 – current stable `dev.dirs:directories` release
### 0.1.0

- First fork release

### 26

- Adds support for IBM Series i (OS/400). Thanks @ThePrez!

Expand Down
41 changes: 0 additions & 41 deletions build.sbt

This file was deleted.

55 changes: 55 additions & 0 deletions build.sc
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
import $ivy.`de.tototec::de.tobiasroeser.mill.vcs.version::0.4.1`

import de.tobiasroeser.mill.vcs.version.VcsVersion
import mill._
import mill.scalalib._
import mill.scalalib.publish._

object directories extends JavaModule with PublishModule {
def pomSettings = PomSettings(
description = "directories-jvm",
organization = "io.get-coursier.util",
url = "https://github.com/coursier/directories-jvm",
licenses = Seq(License.`MPL-2.0`),
versionControl = VersionControl.github("coursier", "directories-jvm"),
developers = Seq(
Developer("alexarchambault", "Alex Archambault", "https://github.com/alexarchambault")
)
)
def publishVersion = T {
val value = VcsVersion.vcsState().format()
if (value.contains("-")) {
val value0 = value.takeWhile(_ != '-')
val lastDotIdx = value0.lastIndexOf('.')
if (lastDotIdx < 0) value0 + "-SNAPSHOT"
else
value0.drop(lastDotIdx + 1).toIntOption match {
case Some(lastNum) =>
val prefix = value0.take(lastDotIdx)
s"$prefix.${lastNum + 1}-SNAPSHOT"
case None =>
value0 + "-SNAPSHOT"
}
}
else value
}

def javadocOptions = super.javadocOptions() ++ Seq(
"-Xdoclint:none"
)

def sources = T.sources {
Seq(PathRef(T.workspace / "src/main"))
}

object test extends JavaTests {
def sources = T.sources {
Seq(PathRef(T.workspace / "src/test"))
}
def ivyDeps = super.ivyDeps() ++ Agg(
ivy"junit:junit:4.13",
ivy"com.novocode:junit-interface:0.11"
)
def testFramework = "com.novocode.junit.JUnitFramework"
}
}
Loading
Loading