Skip to content

Commit 318a553

Browse files
authored
Merge pull request #175 from scala-native/bindings-resolver-doc
Specify resolver in bindings usage instructions
2 parents 63be9a2 + 088c05d commit 318a553

File tree

6 files changed

+55
-3
lines changed

6 files changed

+55
-3
lines changed

docs/src/paradox/bindings/iconv.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
# Iconv - Character set conversion
22

3-
To use this binding add the following dependency:
3+
To use this binding add the following resolver and the dependency:
4+
5+
sbt
6+
: @@snip [build.sbt](../resources/build.sbt)
7+
8+
Maven
9+
: @@snip [pom.xml](../resources/pom.xml) { #library_resolver }
10+
11+
Gradle
12+
: @@snip [build.gradle](../resources/build.gradle)
413

514
@@dependency[sbt,Maven,Gradle] {
615
group="org.scala-native.bindgen"

docs/src/paradox/bindings/posix.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
# POSIX
22

3-
An addition to Scala Native's [POSIX](http://www.scala-native.org/en/latest/lib/posixlib.html) bindings. To use one of the POSIX bindings you must add it as a dependency:
3+
An addition to Scala Native's [POSIX](http://www.scala-native.org/en/latest/lib/posixlib.html) bindings. To use one of the POSIX bindings you must add the resolver and the dependency:
4+
5+
sbt
6+
: @@snip [build.sbt](../resources/build.sbt)
7+
8+
Maven
9+
: @@snip [pom.xml](../resources/pom.xml) { #library_resolver }
10+
11+
Gradle
12+
: @@snip [build.gradle](../resources/build.gradle)
13+
414

515
@@dependency[sbt,Maven,Gradle] {
616
group="org.scala-native.bindgen"

docs/src/paradox/bindings/utf8proc.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,16 @@
22

33
This binding for [`utf8proc.h`] provides Unicode normalization, case-folding, and other operations for strings in the UTF-8 encoding.
44

5-
To use it add the following dependency:
5+
To use it add the following resolver and the dependency:
6+
7+
sbt
8+
: @@snip [build.sbt](../resources/build.sbt)
9+
10+
Maven
11+
: @@snip [pom.xml](../resources/pom.xml) { #library_resolver }
12+
13+
Gradle
14+
: @@snip [build.gradle](../resources/build.gradle)
615

716
@@dependency[sbt,Maven,Gradle] {
817
group="org.scala-native.bindgen"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
repositories {
2+
maven {
3+
url "https://dl.bintray.com/scala-native-bindgen/maven"
4+
}
5+
}

docs/src/paradox/resources/build.sbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
resolvers += Resolver.bintrayRepo("scala-native-bindgen", "maven")

docs/src/paradox/resources/pom.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<artifactId>maven-scala-test</artifactId>
8+
9+
<!-- #library_resolver -->
10+
<repositories>
11+
<repository>
12+
<id>maven</id>
13+
<url>http://dl.bintray.com/scala-native-bindgen/maven</url>
14+
</repository>
15+
</repositories>
16+
<!-- #library_resolver -->
17+
18+
</project>

0 commit comments

Comments
 (0)