Skip to content

Specify resolver in bindings usage instructions #175

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 28, 2018
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion docs/src/paradox/bindings/iconv.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
# Iconv - Character set conversion

To use this binding add the following dependency:
To use this binding add the following resolver and the dependency:

sbt
: @@snip [build.sbt](../resources/build.sbt)

Maven
: @@snip [pom.xml](../resources/pom.xml) { #library_resolver }

Gradle
: @@snip [build.gradle](../resources/build.gradle)

@@dependency[sbt,Maven,Gradle] {
group="org.scala-native.bindgen"
Expand Down
12 changes: 11 additions & 1 deletion docs/src/paradox/bindings/posix.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
# POSIX

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:
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:

sbt
: @@snip [build.sbt](../resources/build.sbt)

Maven
: @@snip [pom.xml](../resources/pom.xml) { #library_resolver }

Gradle
: @@snip [build.gradle](../resources/build.gradle)


@@dependency[sbt,Maven,Gradle] {
group="org.scala-native.bindgen"
Expand Down
11 changes: 10 additions & 1 deletion docs/src/paradox/bindings/utf8proc.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,16 @@

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

To use it add the following dependency:
To use it add the following resolver and the dependency:

sbt
: @@snip [build.sbt](../resources/build.sbt)

Maven
: @@snip [pom.xml](../resources/pom.xml) { #library_resolver }

Gradle
: @@snip [build.gradle](../resources/build.gradle)

@@dependency[sbt,Maven,Gradle] {
group="org.scala-native.bindgen"
Expand Down
5 changes: 5 additions & 0 deletions docs/src/paradox/resources/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
repositories {
maven {
url "https://dl.bintray.com/scala-native-bindgen/maven"
}
}
1 change: 1 addition & 0 deletions docs/src/paradox/resources/build.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
resolvers += Resolver.bintrayRepo("scala-native-bindgen", "maven")
18 changes: 18 additions & 0 deletions docs/src/paradox/resources/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<artifactId>maven-scala-test</artifactId>

<!-- #library_resolver -->
<repositories>
<repository>
<id>maven</id>
<url>http://dl.bintray.com/scala-native-bindgen/maven</url>
</repository>
</repositories>
<!-- #library_resolver -->

</project>