Skip to content
Open
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
2 changes: 1 addition & 1 deletion .classpath
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="bin/main" path="src/main/java/com/omarnyte">
<classpathentry kind="src" output="bin/main" path="src/main/java"
<attributes>
<attribute name="gradle_scope" value="main"/>
<attribute name="gradle_used_by_scope" value="main,test"/>
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Clojars Project](https://img.shields.io/clojars/v/com.omarnyte/http-server.svg)](https://clojars.org/com.omarnyte/http-server)

# HTTP Server
This is a simple server built with Java 10. It can receive, parse, handle, and respond to HTTP 1.1 requests. For more detailed functionality and limitations, see [Supported Functionality](#supported-functionality).

Expand Down
39 changes: 38 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
plugins {
id 'java'
id 'maven-publish'
}

group = 'com.omarnyte'
version = '1.1.2'
version = '1.0-SNAPSHOT'

repositories {
mavenCentral()
Expand Down Expand Up @@ -71,3 +72,39 @@ jar {
attributes 'Main-Class': 'com.omarnyte.Main'
}
}

publishing {
publications {
httpServer(MavenPublication) {
artifactId = 'http-server'
from components.java

pom {
name = 'HTTP Server'
description = 'A custom HTTP Server built in Java'
url = 'https://github.com/omarnyte/http-server'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
scm {
connection = 'scm:git:git://github.com/omarnyte/http-server.git'
developerConnection = 'scm:git:ssh://git@github.com/omarnyte/http-server.git'
url = 'https://github.com/omarnyte/http-server'
}
}
}
}
repositories {
maven {
url = "https://clojars.org/repo"
credentials {
username clojarsUsername
password clojarsPassword
}
}
}
}